-
Notifications
You must be signed in to change notification settings - Fork 13k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This preserves the error you currently get on stable for the old-lub-glb-object.rs test.
- Loading branch information
1 parent
21e9478
commit 33d3598
Showing
3 changed files
with
38 additions
and
6 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
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,18 @@ | ||
error[E0308]: match arms have incompatible types | ||
--> $DIR/old-lub-glb-object.rs:12:14 | ||
| | ||
LL | let z = match 22 { | ||
| _____________- | ||
LL | | 0 => x, | ||
| | - this is found to be of type `&dyn for<'a, 'b> Foo<&'a u8, &'b u8>` | ||
LL | | _ => y, //~ ERROR match arms have incompatible types | ||
| | ^ expected bound lifetime parameter 'a, found concrete lifetime | ||
LL | | }; | ||
| |_____- `match` arms have incompatible types | ||
| | ||
= note: expected type `&dyn for<'a, 'b> Foo<&'a u8, &'b u8>` | ||
found type `&dyn for<'a> Foo<&'a u8, &'a u8>` | ||
|
||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0308`. |