Rollup merge of #48446 - mark-i-m:e0245, r=mark-i-m
Remove E0245; improve E0404 Fix #36337 Somehow this is currently breaking --explain, but I don't understand how. r? @estebank
This commit is contained in:
commit
39d5e1cba6
6 changed files with 45 additions and 17 deletions
|
|
@ -13,5 +13,6 @@ struct Bar;
|
|||
|
||||
impl Foo for Bar {} //~ ERROR E0404
|
||||
|
||||
fn main() {
|
||||
}
|
||||
fn main() {}
|
||||
|
||||
fn baz<T: Foo>(_: T) {} //~ ERROR E0404
|
||||
|
|
|
|||
|
|
@ -4,6 +4,12 @@ error[E0404]: expected trait, found struct `Foo`
|
|||
LL | impl Foo for Bar {} //~ ERROR E0404
|
||||
| ^^^ not a trait
|
||||
|
||||
error[E0404]: expected trait, found struct `Foo`
|
||||
--> $DIR/E0404.rs:18:11
|
||||
|
|
||||
LL | fn baz<T: Foo>(_: T) {} //~ ERROR E0404
|
||||
| ^^^ not a trait
|
||||
|
||||
error: cannot continue compilation due to previous error
|
||||
|
||||
If you want more information on this error, try using "rustc --explain E0404"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue