mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 15:54:15 +00:00
Add explicit error annotations to test.
This commit adds explicit error annotations to tests after rebasing which is now required.
This commit is contained in:
parent
dc41606ff4
commit
6092d92d70
@ -4,4 +4,5 @@ fn main<'a>() {
|
||||
return;
|
||||
|
||||
let x = foo::<&'a u32>();
|
||||
//~^ ERROR the type `&'a u32` does not fulfill the required lifetime [E0477]
|
||||
}
|
||||
|
@ -3,7 +3,7 @@ error[E0597]: `a` does not live long enough
|
||||
|
|
||||
LL | let b = Some(Cell::new(&a));
|
||||
| ^^ borrowed value does not live long enough
|
||||
LL | match b {
|
||||
...
|
||||
LL | <() as Foo<'static>>::C => { }
|
||||
| ----------------------- type annotation requires that `a` is borrowed for `'static`
|
||||
...
|
||||
|
@ -11,6 +11,7 @@ impl<'a, T> Foo<'a> for T {
|
||||
fn main() {
|
||||
let a = 22;
|
||||
let b = Some(Cell::new(&a));
|
||||
//~^ ERROR `a` does not live long enough [E0597]
|
||||
match b {
|
||||
<() as Foo<'static>>::C => { }
|
||||
_ => { }
|
||||
|
Loading…
Reference in New Issue
Block a user