Skip to content

Commit 6092d92

Browse files
committed
Add explicit error annotations to test.
This commit adds explicit error annotations to tests after rebasing which is now required.
1 parent dc41606 commit 6092d92

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

src/test/ui/issue-54943.rs

+1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ fn main<'a>() {
44
return;
55

66
let x = foo::<&'a u32>();
7+
//~^ ERROR the type `&'a u32` does not fulfill the required lifetime [E0477]
78
}

src/test/ui/issue-55511.nll.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ error[E0597]: `a` does not live long enough
33
|
44
LL | let b = Some(Cell::new(&a));
55
| ^^ borrowed value does not live long enough
6-
LL | match b {
6+
...
77
LL | <() as Foo<'static>>::C => { }
88
| ----------------------- type annotation requires that `a` is borrowed for `'static`
99
...

src/test/ui/issue-55511.rs

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ impl<'a, T> Foo<'a> for T {
1111
fn main() {
1212
let a = 22;
1313
let b = Some(Cell::new(&a));
14+
//~^ ERROR `a` does not live long enough [E0597]
1415
match b {
1516
<() as Foo<'static>>::C => { }
1617
_ => { }

0 commit comments

Comments
 (0)