2017-01-11 22:18:08 +00:00
|
|
|
error[E0405]: cannot find trait `Nonexist` in this scope
|
2016-11-30 22:35:25 +00:00
|
|
|
--> $DIR/unboxed-closure-sugar-nonexistent-trait.rs:11:8
|
|
|
|
|
|
|
|
|
11 | fn f<F:Nonexist(isize) -> isize>(x: F) {}
|
2017-01-11 22:18:08 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
|
2016-11-30 22:35:25 +00:00
|
|
|
|
2016-11-30 22:35:25 +00:00
|
|
|
error[E0404]: expected trait, found type alias `Typedef`
|
2016-11-30 22:35:25 +00:00
|
|
|
--> $DIR/unboxed-closure-sugar-nonexistent-trait.rs:17:8
|
|
|
|
|
|
|
|
|
17 | fn g<F:Typedef(isize) -> isize>(x: F) {}
|
2016-11-30 22:35:25 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^ type aliases cannot be used for traits
|
2016-11-30 22:35:25 +00:00
|
|
|
|
|
|
|
error: cannot continue compilation due to previous error
|
|
|
|
|