forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved all of the tests over to ui and annotated why they are failing …
…with appropriate fixme comments
- Loading branch information
Showing
12 changed files
with
97 additions
and
35 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
35 changes: 0 additions & 35 deletions
35
src/test/run-pass/rfc1598-generic-associated-types/whitespace-before-generics.rs
This file was deleted.
Oops, something went wrong.
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
8 changes: 8 additions & 0 deletions
8
src/test/ui/rfc1598-generic-associated-types/construct_with_other_type.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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
error[E0261]: use of undeclared lifetime name `'a` | ||
--> $DIR/construct_with_other_type.rs:24:37 | ||
| | ||
24 | type Quux<'a> = <T as Foo>::Bar<'a, 'static>; | ||
| ^^ undeclared lifetime | ||
|
||
error: aborting due to previous error | ||
|
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
8 changes: 8 additions & 0 deletions
8
src/test/ui/rfc1598-generic-associated-types/generic-associated-types-where.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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
error[E0261]: use of undeclared lifetime name `'a` | ||
--> $DIR/generic-associated-types-where.rs:32:32 | ||
| | ||
32 | type WithDefault<'a, T> = &'a Iterator<T>; | ||
| ^^ undeclared lifetime | ||
|
||
error: aborting due to previous error | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
error[E0261]: use of undeclared lifetime name `'a` | ||
--> $DIR/iterable.rs:17:47 | ||
| | ||
17 | type Iter<'a>: Iterator<Item = Self::Item<'a>>; | ||
| ^^ undeclared lifetime | ||
|
||
error: aborting due to previous error | ||
|
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
26 changes: 26 additions & 0 deletions
26
src/test/ui/rfc1598-generic-associated-types/pointer_family.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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
error[E0109]: type parameters are not allowed on this type | ||
--> $DIR/pointer_family.rs:46:21 | ||
| | ||
46 | bar: P::Pointer<String>, | ||
| ^^^^^^ type parameter not allowed | ||
|
||
error[E0109]: type parameters are not allowed on this type | ||
--> $DIR/pointer_family.rs:21:42 | ||
| | ||
21 | fn new<T>(value: T) -> Self::Pointer<T>; | ||
| ^ type parameter not allowed | ||
|
||
error[E0109]: type parameters are not allowed on this type | ||
--> $DIR/pointer_family.rs:29:42 | ||
| | ||
29 | fn new<T>(value: T) -> Self::Pointer<T> { | ||
| ^ type parameter not allowed | ||
|
||
error[E0109]: type parameters are not allowed on this type | ||
--> $DIR/pointer_family.rs:39:42 | ||
| | ||
39 | fn new<T>(value: T) -> Self::Pointer<T> { | ||
| ^ type parameter not allowed | ||
|
||
error: aborting due to 4 previous errors | ||
|
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
20 changes: 20 additions & 0 deletions
20
src/test/ui/rfc1598-generic-associated-types/streaming_iterator.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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
error[E0110]: lifetime parameters are not allowed on this type | ||
--> $DIR/streaming_iterator.rs:27:41 | ||
| | ||
27 | bar: <T as StreamingIterator>::Item<'static>, | ||
| ^^^^^^^ lifetime parameter not allowed on this type | ||
|
||
error[E0110]: lifetime parameters are not allowed on this type | ||
--> $DIR/streaming_iterator.rs:35:64 | ||
| | ||
35 | fn foo<T>(iter: T) where T: StreamingIterator, for<'a> T::Item<'a>: Display { /* ... */ } | ||
| ^^ lifetime parameter not allowed on this type | ||
|
||
error[E0110]: lifetime parameters are not allowed on this type | ||
--> $DIR/streaming_iterator.rs:21:48 | ||
| | ||
21 | fn next<'a>(&'a self) -> Option<Self::Item<'a>>; | ||
| ^^ lifetime parameter not allowed on this type | ||
|
||
error: aborting due to 3 previous errors | ||
|