fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.0
1error[E0405]: cannot find trait `Nonexist` in this scope 2 --> $DIR/unboxed-closure-sugar-nonexistent-trait.rs:1:8 3 | 4LL | fn f<F:Nonexist(isize) -> isize>(x: F) {} 5 | ^^^^^^^^ not found in this scope 6 7error[E0404]: expected trait, found type alias `Typedef` 8 --> $DIR/unboxed-closure-sugar-nonexistent-trait.rs:6:8 9 | 10LL | fn g<F:Typedef(isize) -> isize>(x: F) {} 11 | ^^^^^^^^^^^^^^^^^^^^^^^ type aliases cannot be used as traits 12 | 13 = note: did you mean to use a trait alias? 14 15error: aborting due to 2 previous errors 16 17Some errors have detailed explanations: E0404, E0405. 18For more information about an error, try `rustc --explain E0404`.