1 error[E0405]: cannot find trait `Nonexist` in this scope
2 --> $DIR/unboxed-closure-sugar-nonexistent-trait.rs:11:8
4 11 | fn f<F:Nonexist(isize) -> isize>(x: F) {}
5 | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
7 error[E0404]: expected trait, found type alias `Typedef`
8 --> $DIR/unboxed-closure-sugar-nonexistent-trait.rs:17:8
10 17 | fn g<F:Typedef(isize) -> isize>(x: F) {}
11 | ^^^^^^^^^^^^^^^^^^^^^^^ type aliases cannot be used for traits
13 error: cannot continue compilation due to previous error