Skip to content

Commit 06067d9

Browse files
committed
Bless test
1 parent b4ca2c0 commit 06067d9

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

src/test/ui/generic-associated-types/issue-91139.stderr renamed to src/test/ui/generic-associated-types/issue-91139.migrate.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0311]: the parameter type `T` may not live long enough
2-
--> $DIR/issue-91139.rs:19:12
2+
--> $DIR/issue-91139.rs:27:12
33
|
44
LL | fn foo<T>() {
55
| - help: consider adding an explicit lifetime bound...: `T: 'a`

src/test/ui/generic-associated-types/issue-91139.rs

+11-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
1-
// check-fail
1+
// revisions: migrate nll
2+
//[nll]compile-flags: -Z borrowck=mir
3+
4+
// Since we are testing nll (and migration) explicitly as a separate
5+
// revisions, don't worry about the --compare-mode=nll on this test.
6+
7+
// ignore-compare-mode-nll
8+
9+
//[nll] check-pass
10+
//[migrate] check-fail
211

312
#![feature(generic_associated_types)]
413

@@ -16,7 +25,7 @@ impl<T> Foo<T> for () {
1625

1726
fn foo<T>() {
1827
let _: for<'a> fn(<() as Foo<T>>::Type<'a>, &'a T) = |_, _| ();
19-
//~^ the parameter type `T` may not live long enough
28+
//[migrate]~^ the parameter type `T` may not live long enough
2029
}
2130

2231
pub fn main() {}

0 commit comments

Comments
 (0)