]> git.proxmox.com Git - rustc.git/blob - src/test/ui/resolve/unboxed-closure-sugar-nonexistent-trait.stderr
New upstream version 1.17.0+dfsg1
[rustc.git] / src / test / ui / resolve / unboxed-closure-sugar-nonexistent-trait.stderr
1 error[E0405]: cannot find trait `Nonexist` in this scope
2 --> $DIR/unboxed-closure-sugar-nonexistent-trait.rs:11:8
3 |
4 11 | fn f<F:Nonexist(isize) -> isize>(x: F) {}
5 | ^^^^^^^^ not found in this scope
6
7 error[E0404]: expected trait, found type alias `Typedef`
8 --> $DIR/unboxed-closure-sugar-nonexistent-trait.rs:17:8
9 |
10 17 | fn g<F:Typedef(isize) -> isize>(x: F) {}
11 | ^^^^^^^^^^^^^^^^^^^^^^^ type aliases cannot be used for traits
12
13 error: cannot continue compilation due to previous error
14