blob: f32c5e9b2c6bd2e2f5214315d6dd3271340de899 [file] [log] [blame]
error[E0405]: cannot find trait `Nonexist` in this scope
--> $DIR/unboxed-closure-sugar-nonexistent-trait.rs:11:8
|
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
|
LL | fn g<F:Typedef(isize) -> isize>(x: F) {}
| ^^^^^^^^^^^^^^^^^^^^^^^ type aliases cannot be used for traits
error: aborting due to 2 previous errors
Some errors occurred: E0404, E0405.
For more information about an error, try `rustc --explain E0404`.