]> git.lizzy.rs Git - rust.git/blob - src/test/ui/resolve/unboxed-closure-sugar-nonexistent-trait.stderr
Tweak some suggestions in `rustc_resolve`
[rust.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:1:8
3    |
4 LL | 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:6:8
9    |
10 LL | fn g<F:Typedef(isize) -> isize>(x: F) {}
11    |        ^^^^^^^^^^^^^^^^^^^^^^^ type aliases cannot be used as traits
12    |
13 help: you might have meant to use `#![feature(trait_alias)]` instead of a `type` alias
14   --> $DIR/unboxed-closure-sugar-nonexistent-trait.rs:4:1
15    |
16 LL | type Typedef = isize;
17    | ^^^^^^^^^^^^^^^^^^^^^
18
19 error: aborting due to 2 previous errors
20
21 Some errors have detailed explanations: E0404, E0405.
22 For more information about an error, try `rustc --explain E0404`.