rust/src/test/ui/resolve/unboxed-closure-sugar-nonexistent-trait.stderr

19 lines
651 B
Plaintext
Raw Normal View History

error[E0405]: cannot find trait `Nonexist` in this scope
--> $DIR/unboxed-closure-sugar-nonexistent-trait.rs:11:8
|
2018-02-23 03:42:32 +03:00
LL | fn f<F:Nonexist(isize) -> isize>(x: F) {}
| ^^^^^^^^ not found in this scope
error[E0404]: expected trait, found type alias `Typedef`
--> $DIR/unboxed-closure-sugar-nonexistent-trait.rs:16:8
|
2018-02-23 03:42:32 +03:00
LL | fn g<F:Typedef(isize) -> isize>(x: F) {}
2018-10-22 01:58:34 +01:00
| ^^^^^^^^^^^^^^^^^^^^^^^ type aliases cannot be used as traits
|
= note: did you mean to use a trait alias?
2018-03-15 16:13:47 +01:00
error: aborting due to 2 previous errors
2018-03-15 16:13:47 +01:00
Some errors occurred: E0404, E0405.
For more information about an error, try `rustc --explain E0404`.