You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The latest nightly 3-25-2022 ( 0.3.989) on Mac vscode gives me this error. Cargo build this is ok. Also the RA build 0.3.986 don't
give this error. rustc -V
rustc 1.58.0 (02072b482 2022-01-11)
Here is source code. I grant this may be most correct rust, but it works for me. You can give suggestion better code too :-) ,
but RA should not give error, where rustc is happy.
traitFoo{typeFooItem;}traitBar{typeBarItem:Foo;fnadd_foo(&self,bar:Box<dynFoo<FooItem=Self::BarItem>>){}}structBaz<B>{bar:B,}impl<B:Bar>Baz<B>{fnadd_rule<F:'static>(&mutself,mutfoo:F)whereF:Foo<FooItem = <BasBar>::BarItem>{self.bar.add_foo(Box::new(foo));// <<-- THIS line give RA Error now}}
The text was updated successfully, but these errors were encountered:
This will be fixed by rust-lang/chalk#754 once that gets merged. Also, #11809 will hide the diagnostic unless you explicitly enable experimental errors 🙂
Hi,
The latest nightly 3-25-2022 ( 0.3.989) on Mac vscode gives me this error. Cargo build this is ok. Also the RA build 0.3.986 don't
give this error. rustc -V
rustc 1.58.0 (02072b482 2022-01-11)
[{
"resource": "/Users/ville.mattila/src/smc_umbrella/backend/src/manager/policy.rs",
"owner": "rustc",
"code": {
"value": "type-mismatch",
"target": {
"$mid": 1,
"external": "https://rust-analyzer.github.io/manual.html#type-mismatch",
"path": "/manual.html",
"scheme": "https",
"authority": "rust-analyzer.github.io",
"fragment": "type-mismatch"
}
},
"severity": 8,
"message": "expected Box<dyn Foo<FooItem = ::BarItem>, Global>, found Box<F, Global>",
"source": "rust-analyzer",
"startLineNumber": 33,
"startColumn": 26,
"endLineNumber": 33,
"endColumn": 39
}]
Here is source code. I grant this may be most correct rust, but it works for me. You can give suggestion better code too :-) ,
but RA should not give error, where rustc is happy.
The text was updated successfully, but these errors were encountered: