Skip to content

Commit

Permalink
Blessed tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexreg committed Jul 6, 2019
1 parent 11228ca commit f035630
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/test/ui/type-alias/issue-62263-self-in-atb.stderr
Original file line number Diff line number Diff line change
@@ -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 changes: 9 additions & 0 deletions src/test/ui/type-alias/issue-62305-self-assoc-ty.stderr
Original file line number Diff line number Diff line change
@@ -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 changes: 9 additions & 0 deletions src/test/ui/type-alias/issue-62364-self-ty-arg.stderr
Original file line number Diff line number Diff line change
@@ -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`.

0 comments on commit f035630

Please sign in to comment.