Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
5 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 1 addition & 15 deletions
16
src/test/ui/generic-associated-types/bugs/issue-87735.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,9 @@ | ||
warning: where clause not allowed here | ||
--> $DIR/issue-87735.rs:15:19 | ||
| | ||
LL | type Output<'a> where Self: 'a = &'a [T]; | ||
| ^^^^^^^^^^^^^^ - help: move it here: `where Self: 'a` | ||
| | ||
= note: `#[warn(deprecated_where_clause_location)]` on by default | ||
|
||
warning: where clause not allowed here | ||
--> $DIR/issue-87735.rs:36:19 | ||
| | ||
LL | type Output<'a> where Self: 'a = FooRef<'a, U>; | ||
| ^^^^^^^^^^^^^^ - help: move it here: `where Self: 'a` | ||
|
||
error[E0207]: the type parameter `U` is not constrained by the impl trait, self type, or predicates | ||
--> $DIR/issue-87735.rs:27:13 | ||
| | ||
LL | impl<'b, T, U> AsRef2 for Foo<T> | ||
| ^ unconstrained type parameter | ||
|
||
error: aborting due to previous error; 2 warnings emitted | ||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0207`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters