Skip to content

Commit f035630

Browse files
author
Alexander Regueiro
committed
Blessed tests.
1 parent 11228ca commit f035630

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
error[E0433]: failed to resolve: use of undeclared type or module `Self`
2+
--> $DIR/issue-62263-self-in-atb.rs:5:32
3+
|
4+
LL | pub type Alias = dyn Trait<A = Self::A>;
5+
| ^^^^ use of undeclared type or module `Self`
6+
7+
error: aborting due to previous error
8+
9+
For more information about this error, try `rustc --explain E0433`.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
error[E0433]: failed to resolve: use of undeclared type or module `Self`
2+
--> $DIR/issue-62305-self-assoc-ty.rs:1:14
3+
|
4+
LL | type Alias = Self::Target;
5+
| ^^^^ use of undeclared type or module `Self`
6+
7+
error: aborting due to previous error
8+
9+
For more information about this error, try `rustc --explain E0433`.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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+
error: aborting due to previous error
8+
9+
For more information about this error, try `rustc --explain E0411`.

0 commit comments

Comments
 (0)