fix tests after rebase
This commit is contained in:
parent
da5b0cc851
commit
40f161aeb0
@ -8,13 +8,18 @@ LL | bar(|| {
|
|||||||
LL | |
|
LL | |
|
||||||
LL | | let _ = x;
|
LL | | let _ = x;
|
||||||
LL | | })
|
LL | | })
|
||||||
| |_____^ ...is captured here...
|
| |_____^ ...is used here...
|
||||||
|
|
|
|
||||||
note: ...and is required to live as long as `'static` here
|
note: ...and is required to live as long as `'static` here
|
||||||
--> $DIR/closure-bounds-static-cant-capture-borrowed.rs:5:5
|
--> $DIR/closure-bounds-static-cant-capture-borrowed.rs:5:5
|
||||||
|
|
|
|
||||||
LL | bar(|| {
|
LL | bar(|| {
|
||||||
| ^^^
|
| ^^^
|
||||||
|
note: `'static` lifetime requirement introduced by this bound
|
||||||
|
--> $DIR/closure-bounds-static-cant-capture-borrowed.rs:1:39
|
||||||
|
|
|
||||||
|
LL | fn bar<F>(blk: F) where F: FnOnce() + 'static {
|
||||||
|
| ^^^^^^^
|
||||||
|
|
||||||
error: aborting due to previous error
|
error: aborting due to previous error
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ LL | fn dangle(x: &mut i32) -> &'static mut i32 {
|
|||||||
| -------- this data with an anonymous lifetime `'_`...
|
| -------- this data with an anonymous lifetime `'_`...
|
||||||
...
|
...
|
||||||
LL | x
|
LL | x
|
||||||
| ^ ...is captured here...
|
| ^ ...is used here...
|
||||||
...
|
...
|
||||||
LL | GeneratorState::Complete(c) => return c,
|
LL | GeneratorState::Complete(c) => return c,
|
||||||
| - ...and is required to live as long as `'static` here
|
| - ...and is required to live as long as `'static` here
|
||||||
|
@ -4,7 +4,9 @@ error[E0759]: `x` has an anonymous lifetime `'_` but it needs to satisfy a `'sta
|
|||||||
LL | fn f(x: &impl for<'a> X<Y<'a> = &'a ()>) -> &'static () {
|
LL | fn f(x: &impl for<'a> X<Y<'a> = &'a ()>) -> &'static () {
|
||||||
| ------------------------------- this data with an anonymous lifetime `'_`...
|
| ------------------------------- this data with an anonymous lifetime `'_`...
|
||||||
LL | x.m()
|
LL | x.m()
|
||||||
| --^-- ...is captured and required to live as long as `'static` here
|
| - ^
|
||||||
|
| |
|
||||||
|
| ...is used and required to live as long as `'static` here
|
||||||
|
|
||||||
error[E0759]: `x` has an anonymous lifetime `'_` but it needs to satisfy a `'static` lifetime requirement
|
error[E0759]: `x` has an anonymous lifetime `'_` but it needs to satisfy a `'static` lifetime requirement
|
||||||
--> $DIR/projection-type-lifetime-mismatch.rs:22:7
|
--> $DIR/projection-type-lifetime-mismatch.rs:22:7
|
||||||
@ -12,7 +14,9 @@ error[E0759]: `x` has an anonymous lifetime `'_` but it needs to satisfy a `'sta
|
|||||||
LL | fn g<T: for<'a> X<Y<'a> = &'a ()>>(x: &T) -> &'static () {
|
LL | fn g<T: for<'a> X<Y<'a> = &'a ()>>(x: &T) -> &'static () {
|
||||||
| -- this data with an anonymous lifetime `'_`...
|
| -- this data with an anonymous lifetime `'_`...
|
||||||
LL | x.m()
|
LL | x.m()
|
||||||
| --^-- ...is captured and required to live as long as `'static` here
|
| - ^
|
||||||
|
| |
|
||||||
|
| ...is used and required to live as long as `'static` here
|
||||||
|
|
||||||
error[E0759]: `x` has an anonymous lifetime `'_` but it needs to satisfy a `'static` lifetime requirement
|
error[E0759]: `x` has an anonymous lifetime `'_` but it needs to satisfy a `'static` lifetime requirement
|
||||||
--> $DIR/projection-type-lifetime-mismatch.rs:27:7
|
--> $DIR/projection-type-lifetime-mismatch.rs:27:7
|
||||||
@ -20,7 +24,9 @@ error[E0759]: `x` has an anonymous lifetime `'_` but it needs to satisfy a `'sta
|
|||||||
LL | fn h(x: &()) -> &'static () {
|
LL | fn h(x: &()) -> &'static () {
|
||||||
| --- this data with an anonymous lifetime `'_`...
|
| --- this data with an anonymous lifetime `'_`...
|
||||||
LL | x.m()
|
LL | x.m()
|
||||||
| --^-- ...is captured and required to live as long as `'static` here
|
| - ^
|
||||||
|
| |
|
||||||
|
| ...is used and required to live as long as `'static` here
|
||||||
|
|
||||||
error: aborting due to 3 previous errors
|
error: aborting due to 3 previous errors
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ error[E0759]: `x` has an anonymous lifetime `'_` but it needs to satisfy a `'sta
|
|||||||
LL | fn foo(x: &u32) -> &'static u32 {
|
LL | fn foo(x: &u32) -> &'static u32 {
|
||||||
| ---- this data with an anonymous lifetime `'_`...
|
| ---- this data with an anonymous lifetime `'_`...
|
||||||
LL | &*x
|
LL | &*x
|
||||||
| ^^^ ...is captured and required to live as long as `'static` here
|
| ^^^ ...is used and required to live as long as `'static` here
|
||||||
|
|
||||||
error: aborting due to previous error
|
error: aborting due to previous error
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ error[E0759]: `foo` has an anonymous lifetime `'_` but it needs to satisfy a `'s
|
|||||||
LL | fn inner(mut foo: &[u8]) {
|
LL | fn inner(mut foo: &[u8]) {
|
||||||
| ----- this data with an anonymous lifetime `'_`...
|
| ----- this data with an anonymous lifetime `'_`...
|
||||||
LL | let refcell = RefCell::new(&mut foo);
|
LL | let refcell = RefCell::new(&mut foo);
|
||||||
| ^^^^^^^^ ...is captured here...
|
| ^^^^^^^^ ...is used here...
|
||||||
...
|
...
|
||||||
LL | read_thing(read);
|
LL | read_thing(read);
|
||||||
| ---- ...and is required to live as long as `'static` here
|
| ---- ...and is required to live as long as `'static` here
|
||||||
|
@ -17,7 +17,7 @@ error[E0759]: `u` has an anonymous lifetime `'_` but it needs to satisfy a `'sta
|
|||||||
LL | fn error(u: &(), v: &()) {
|
LL | fn error(u: &(), v: &()) {
|
||||||
| --- this data with an anonymous lifetime `'_`...
|
| --- this data with an anonymous lifetime `'_`...
|
||||||
LL | static_id(&u);
|
LL | static_id(&u);
|
||||||
| ^^^^^^^^^ -- ...is captured here...
|
| ^^^^^^^^^ -- ...is used here...
|
||||||
|
|
|
|
||||||
note: ...and is required to live as long as `'static` here
|
note: ...and is required to live as long as `'static` here
|
||||||
--> $DIR/regions-static-bound.rs:10:5
|
--> $DIR/regions-static-bound.rs:10:5
|
||||||
@ -32,7 +32,7 @@ LL | fn error(u: &(), v: &()) {
|
|||||||
| --- this data with an anonymous lifetime `'_`...
|
| --- this data with an anonymous lifetime `'_`...
|
||||||
LL | static_id(&u);
|
LL | static_id(&u);
|
||||||
LL | static_id_indirect(&v);
|
LL | static_id_indirect(&v);
|
||||||
| ^^^^^^^^^^^^^^^^^^ -- ...is captured here...
|
| ^^^^^^^^^^^^^^^^^^ -- ...is used here...
|
||||||
|
|
|
|
||||||
note: ...and is required to live as long as `'static` here
|
note: ...and is required to live as long as `'static` here
|
||||||
--> $DIR/regions-static-bound.rs:11:5
|
--> $DIR/regions-static-bound.rs:11:5
|
||||||
|
Loading…
Reference in New Issue
Block a user