Blessed tests.
This commit is contained in:
parent
11228ca3a0
commit
f035630089
3 changed files with 27 additions and 0 deletions
9
src/test/ui/type-alias/issue-62263-self-in-atb.stderr
Normal file
9
src/test/ui/type-alias/issue-62263-self-in-atb.stderr
Normal file
|
@ -0,0 +1,9 @@
|
|||
error[E0433]: failed to resolve: use of undeclared type or module `Self`
|
||||
--> $DIR/issue-62263-self-in-atb.rs:5:32
|
||||
|
|
||||
LL | pub type Alias = dyn Trait<A = Self::A>;
|
||||
| ^^^^ use of undeclared type or module `Self`
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0433`.
|
9
src/test/ui/type-alias/issue-62305-self-assoc-ty.stderr
Normal file
9
src/test/ui/type-alias/issue-62305-self-assoc-ty.stderr
Normal file
|
@ -0,0 +1,9 @@
|
|||
error[E0433]: failed to resolve: use of undeclared type or module `Self`
|
||||
--> $DIR/issue-62305-self-assoc-ty.rs:1:14
|
||||
|
|
||||
LL | type Alias = Self::Target;
|
||||
| ^^^^ use of undeclared type or module `Self`
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0433`.
|
9
src/test/ui/type-alias/issue-62364-self-ty-arg.stderr
Normal file
9
src/test/ui/type-alias/issue-62364-self-ty-arg.stderr
Normal file
|
@ -0,0 +1,9 @@
|
|||
error[E0411]: cannot find type `Self` in this scope
|
||||
--> $DIR/issue-62364-self-ty-arg.rs:5:29
|
||||
|
|
||||
LL | type Alias<'a> = Struct<&'a Self>;
|
||||
| ^^^^ `Self` is only available in impls, traits, and type definitions
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0411`.
|
Loading…
Reference in a new issue