Skip to content

Commit

Permalink
Bless test
Browse files Browse the repository at this point in the history
  • Loading branch information
jackh726 committed Mar 8, 2022
1 parent b4ca2c0 commit 06067d9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0311]: the parameter type `T` may not live long enough
--> $DIR/issue-91139.rs:19:12
--> $DIR/issue-91139.rs:27:12
|
LL | fn foo<T>() {
| - help: consider adding an explicit lifetime bound...: `T: 'a`
Expand Down
13 changes: 11 additions & 2 deletions src/test/ui/generic-associated-types/issue-91139.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
// check-fail
// revisions: migrate nll
//[nll]compile-flags: -Z borrowck=mir

// Since we are testing nll (and migration) explicitly as a separate
// revisions, don't worry about the --compare-mode=nll on this test.

// ignore-compare-mode-nll

//[nll] check-pass
//[migrate] check-fail

#![feature(generic_associated_types)]

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

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

pub fn main() {}

0 comments on commit 06067d9

Please sign in to comment.