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

17 lines
601 B
Text
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) {}
| ^^^^^^^^^^^^^^^^^^^^^^^ type aliases cannot be used for traits
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`.