Blessed tests.

This commit is contained in:
Alexander Regueiro 2019-07-06 16:16:12 +01:00
parent 11228ca3a0
commit f035630089
3 changed files with 27 additions and 0 deletions

View 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`.

View 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`.

View 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`.