2017-01-12 01:18:08 +03:00
|
|
|
error[E0405]: cannot find trait `Nonexist` in this scope
|
2016-12-01 01:35:25 +03:00
|
|
|
--> $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) {}
|
2017-03-08 22:15:12 +03:00
|
|
|
| ^^^^^^^^ not found in this scope
|
2016-12-01 01:35:25 +03:00
|
|
|
|
2016-12-01 01:35:25 +03:00
|
|
|
error[E0404]: expected trait, found type alias `Typedef`
|
2017-12-10 23:29:24 +03:00
|
|
|
--> $DIR/unboxed-closure-sugar-nonexistent-trait.rs:16:8
|
2016-12-01 01:35:25 +03:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | fn g<F:Typedef(isize) -> isize>(x: F) {}
|
2016-12-01 01:35:25 +03:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^ type aliases cannot be used for traits
|
2016-12-01 01:35:25 +03:00
|
|
|
|
2018-03-15 16:13:47 +01:00
|
|
|
error: aborting due to 2 previous errors
|
2016-12-01 01:35:25 +03:00
|
|
|
|
2018-03-15 16:13:47 +01:00
|
|
|
Some errors occurred: E0404, E0405.
|
|
|
|
For more information about an error, try `rustc --explain E0404`.
|