]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type-alias/issue-62364-self-ty-arg.stderr
Add 'compiler/rustc_codegen_cranelift/' from commit '793d26047f994e23415f8f6bb5686ff2...
[rust.git] / src / test / ui / type-alias / issue-62364-self-ty-arg.stderr
1 error[E0411]: cannot find type `Self` in this scope
2   --> $DIR/issue-62364-self-ty-arg.rs:5:29
3    |
4 LL | type Alias<'a> = Struct<&'a Self>;
5    |              -              ^^^^ `Self` is only available in impls, traits, and type definitions
6    |              |
7    |              help: you might be missing a type parameter: `, Self`
8
9 error: aborting due to previous error
10
11 For more information about this error, try `rustc --explain E0411`.