Update ui tests

This commit is contained in:
Matthew Jasper 2018-09-15 18:30:29 +01:00
parent 994dc4bd1e
commit bd0895d7d0
51 changed files with 208 additions and 177 deletions

View file

@ -1,10 +1,13 @@
error: unsatisfied lifetime constraints
--> $DIR/issue-10291.rs:12:5
--> $DIR/issue-10291.rs:12:65
|
LL | fn test<'x>(x: &'x isize) {
| -- lifetime `'x` defined here
LL | drop::<Box<for<'z> FnMut(&'z isize) -> &'z isize>>(Box::new(|z| {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'x` must outlive `'static`
LL | fn test<'x>(x: &'x isize) {
| -- lifetime `'x` defined here
LL | drop::<Box<for<'z> FnMut(&'z isize) -> &'z isize>>(Box::new(|z| {
| _________________________________________________________________^
LL | | x //~ ERROR E0312
LL | | }));
| |_____^ closure body requires that `'x` must outlive `'static`
error: aborting due to previous error