-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
--> $DIR/union_promotion.rs:19:29
|
LL | let x: &'static bool = &unsafe { //~ borrowed value does not live long enough
error: aborting due to previous error
-For more information about this error, try `rustc --explain E0714`.
+For more information about this error, try `rustc --explain E0716`.
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
--> $DIR/const-int-conversion.rs:14:28
|
LL | let x: &'static i32 = &(5_i32.reverse_bits());
|
= note: borrowed value must be valid for the static lifetime...
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
--> $DIR/const-int-conversion.rs:16:28
|
LL | let y: &'static i32 = &(i32::from_be_bytes([0x12, 0x34, 0x56, 0x78]));
|
= note: borrowed value must be valid for the static lifetime...
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
--> $DIR/const-int-conversion.rs:18:28
|
LL | let z: &'static i32 = &(i32::from_le_bytes([0x12, 0x34, 0x56, 0x78]));
|
= note: borrowed value must be valid for the static lifetime...
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
--> $DIR/const-int-conversion.rs:20:28
|
LL | let a: &'static i32 = &(i32::from_be(i32::from_ne_bytes([0x80, 0, 0, 0])));
|
= note: borrowed value must be valid for the static lifetime...
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
--> $DIR/const-int-conversion.rs:22:29
|
LL | let b: &'static [u8] = &(0x12_34_56_78_i32.to_be_bytes());
|
= note: borrowed value must be valid for the static lifetime...
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
--> $DIR/const-int-conversion.rs:24:29
|
LL | let c: &'static [u8] = &(0x12_34_56_78_i32.to_le_bytes());
|
= note: borrowed value must be valid for the static lifetime...
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
--> $DIR/const-int-conversion.rs:26:29
|
LL | let d: &'static [u8] = &(i32::min_value().to_be().to_ne_bytes());
error: aborting due to 7 previous errors
-For more information about this error, try `rustc --explain E0714`.
+For more information about this error, try `rustc --explain E0716`.
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
--> $DIR/const-int-overflowing.rs:12:36
|
LL | let x: &'static (i32, bool) = &(5_i32.overflowing_add(3)); //~ ERROR does not live long enough
|
= note: borrowed value must be valid for the static lifetime...
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
--> $DIR/const-int-overflowing.rs:13:36
|
LL | let y: &'static (i32, bool) = &(5_i32.overflowing_sub(3)); //~ ERROR does not live long enough
|
= note: borrowed value must be valid for the static lifetime...
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
--> $DIR/const-int-overflowing.rs:14:36
|
LL | let z: &'static (i32, bool) = &(5_i32.overflowing_mul(3)); //~ ERROR does not live long enough
error: aborting due to 3 previous errors
-For more information about this error, try `rustc --explain E0714`.
+For more information about this error, try `rustc --explain E0716`.
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
--> $DIR/const-int-rotate.rs:12:28
|
LL | let x: &'static i32 = &(5_i32.rotate_left(3)); //~ ERROR does not live long enough
|
= note: borrowed value must be valid for the static lifetime...
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
--> $DIR/const-int-rotate.rs:13:28
|
LL | let y: &'static i32 = &(5_i32.rotate_right(3)); //~ ERROR does not live long enough
error: aborting due to 2 previous errors
-For more information about this error, try `rustc --explain E0714`.
+For more information about this error, try `rustc --explain E0716`.
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
--> $DIR/const-int-sign.rs:12:29
|
LL | let x: &'static bool = &(5_i32.is_negative()); //~ ERROR does not live long enough
|
= note: borrowed value must be valid for the static lifetime...
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
--> $DIR/const-int-sign.rs:13:29
|
LL | let y: &'static bool = &(5_i32.is_positive()); //~ ERROR does not live long enough
error: aborting due to 2 previous errors
-For more information about this error, try `rustc --explain E0714`.
+For more information about this error, try `rustc --explain E0716`.
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
--> $DIR/const-int-wrapping.rs:12:28
|
LL | let x: &'static i32 = &(5_i32.wrapping_add(3)); //~ ERROR does not live long enough
|
= note: borrowed value must be valid for the static lifetime...
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
--> $DIR/const-int-wrapping.rs:13:28
|
LL | let y: &'static i32 = &(5_i32.wrapping_sub(3)); //~ ERROR does not live long enough
|
= note: borrowed value must be valid for the static lifetime...
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
--> $DIR/const-int-wrapping.rs:14:28
|
LL | let z: &'static i32 = &(5_i32.wrapping_mul(3)); //~ ERROR does not live long enough
|
= note: borrowed value must be valid for the static lifetime...
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
--> $DIR/const-int-wrapping.rs:15:28
|
LL | let a: &'static i32 = &(5_i32.wrapping_shl(3)); //~ ERROR does not live long enough
|
= note: borrowed value must be valid for the static lifetime...
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
--> $DIR/const-int-wrapping.rs:16:28
|
LL | let b: &'static i32 = &(5_i32.wrapping_shr(3)); //~ ERROR does not live long enough
error: aborting due to 5 previous errors
-For more information about this error, try `rustc --explain E0714`.
+For more information about this error, try `rustc --explain E0716`.
LL | const fn no_dyn_trait_ret() -> &'static dyn std::fmt::Debug { &() }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
--> $DIR/min_const_fn.rs:144:64
|
LL | const fn no_dyn_trait_ret() -> &'static dyn std::fmt::Debug { &() }
error: aborting due to 36 previous errors
-Some errors occurred: E0493, E0714.
+Some errors occurred: E0493, E0716.
For more information about an error, try `rustc --explain E0493`.
LL | const fn no_inner_dyn_trait_ret() -> Hide { Hide(HasDyn { field: &0 }) }
| ^^
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
--> $DIR/min_const_fn_dyn.rs:24:67
|
LL | const fn no_inner_dyn_trait_ret() -> Hide { Hide(HasDyn { field: &0 }) }
error: aborting due to 3 previous errors
-For more information about this error, try `rustc --explain E0714`.
+For more information about this error, try `rustc --explain E0716`.
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
--> $DIR/issue-11681.rs:22:20
|
LL | let testValue = &Test; //~ ERROR borrowed value does not live long enough
error: aborting due to previous error
-For more information about this error, try `rustc --explain E0714`.
+For more information about this error, try `rustc --explain E0716`.
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
--> $DIR/issue-17545.rs:17:10
|
LL | &id(()), //~ ERROR borrowed value does not live long enough
error: aborting due to previous error
-For more information about this error, try `rustc --explain E0714`.
+For more information about this error, try `rustc --explain E0716`.
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
--> $DIR/issue-17718-constants-not-static.rs:15:31
|
LL | fn foo() -> &'static usize { &id(FOO) }
error: aborting due to previous error
-For more information about this error, try `rustc --explain E0714`.
+For more information about this error, try `rustc --explain E0716`.
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
--> $DIR/issue-27592.rs:26:27
|
LL | write(|| format_args!("{}", String::from("Hello world")));
| |
| creates a temporary which is freed while still in use
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
--> $DIR/issue-27592.rs:26:33
|
LL | write(|| format_args!("{}", String::from("Hello world")));
error: aborting due to 2 previous errors
-For more information about this error, try `rustc --explain E0714`.
+For more information about this error, try `rustc --explain E0716`.
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
--> $DIR/issue-30438-a.rs:22:17
|
LL | return &Test { s: &self.s};
error: aborting due to previous error
-For more information about this error, try `rustc --explain E0714`.
+For more information about this error, try `rustc --explain E0716`.
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
--> $DIR/issue-30438-b.rs:23:10
|
LL | &Test { s: &self.s}
error: aborting due to previous error
-For more information about this error, try `rustc --explain E0714`.
+For more information about this error, try `rustc --explain E0716`.
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
--> $DIR/issue-36082.rs:23:19
|
LL | let val: &_ = x.borrow().0;
error: aborting due to previous error
-For more information about this error, try `rustc --explain E0714`.
+For more information about this error, try `rustc --explain E0716`.
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
--> $DIR/issue-44373.rs:15:42
|
LL | let _val: &'static [&'static u32] = &[&FOO]; //~ ERROR borrowed value does not live long enough
error: aborting due to previous error
-For more information about this error, try `rustc --explain E0714`.
+For more information about this error, try `rustc --explain E0716`.
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
--> $DIR/issue-52049.rs:16:10
|
LL | foo(&unpromotable(5u32));
error: aborting due to previous error
-For more information about this error, try `rustc --explain E0714`.
+For more information about this error, try `rustc --explain E0716`.
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
--> $DIR/borrowck-let-suggestion.rs:12:17
|
LL | let mut x = vec![1].iter();
error: aborting due to previous error
-For more information about this error, try `rustc --explain E0714`.
+For more information about this error, try `rustc --explain E0716`.
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
--> $DIR/regions-creating-enums.rs:33:17
|
LL | return &ast::num((*f)(x)); //~ ERROR borrowed value does not live long enough
LL | fn map_nums<'a,'b, F>(x: &ast, f: &mut F) -> &'a ast<'b> where F: FnMut(usize) -> usize {
| ^^
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
--> $DIR/regions-creating-enums.rs:38:17
|
LL | return &ast::add(m_x, m_y); //~ ERROR borrowed value does not live long enough
error: aborting due to 2 previous errors
-For more information about this error, try `rustc --explain E0714`.
+For more information about this error, try `rustc --explain E0716`.
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
--> $DIR/regions-free-region-ordering-caller1.rs:19:27
|
LL | let z: &'a & usize = &(&y);
error: aborting due to previous error
-For more information about this error, try `rustc --explain E0714`.
+For more information about this error, try `rustc --explain E0716`.
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
--> $DIR/regions-lifetime-of-struct-or-enum-variant.rs:24:20
|
LL | let testValue = &id(Test);
LL | fn structLifetime<'a>() -> &'a Test {
| ^^
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
--> $DIR/regions-lifetime-of-struct-or-enum-variant.rs:30:20
|
LL | let testValue = &id(MyEnum::Variant1);
error: aborting due to 2 previous errors
-For more information about this error, try `rustc --explain E0714`.
+For more information about this error, try `rustc --explain E0716`.
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
--> $DIR/regions-ref-in-fn-arg.rs:14:13
|
LL | fn arg_item(box ref x: Box<isize>) -> &'static isize {
|
= note: borrowed value must be valid for the static lifetime...
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
--> $DIR/regions-ref-in-fn-arg.rs:21:11
|
LL | with(|box ref x| x) //~ ERROR borrowed value does not live long enough
error: aborting due to 2 previous errors
-For more information about this error, try `rustc --explain E0714`.
+For more information about this error, try `rustc --explain E0716`.
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
--> $DIR/regions-ret.rs:14:13
|
LL | return &id(3); //~ ERROR borrowed value does not live long enough
error: aborting due to previous error
-For more information about this error, try `rustc --explain E0714`.
+For more information about this error, try `rustc --explain E0716`.
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
--> $DIR/regions-return-stack-allocated-vec.rs:14:6
|
LL | &[x] //~ ERROR borrowed value does not live long enough
error: aborting due to previous error
-For more information about this error, try `rustc --explain E0714`.
+For more information about this error, try `rustc --explain E0716`.
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
--> $DIR/regions-var-type-out-of-scope.rs:19:14
|
LL | x = &id(3); //~ ERROR borrowed value does not live long enough
error: aborting due to previous error
-For more information about this error, try `rustc --explain E0714`.
+For more information about this error, try `rustc --explain E0716`.
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
--> $DIR/borrowck-let-suggestion-suffixes.rs:28:14
|
LL | v3.push(&id('x')); // statement 6
|
= note: consider using a `let` binding to create a longer lived value
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
--> $DIR/borrowck-let-suggestion-suffixes.rs:38:18
|
LL | v4.push(&id('y'));
|
= note: consider using a `let` binding to create a longer lived value
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
--> $DIR/borrowck-let-suggestion-suffixes.rs:49:14
|
LL | v5.push(&id('z'));
error: aborting due to 3 previous errors
-For more information about this error, try `rustc --explain E0714`.
+For more information about this error, try `rustc --explain E0716`.
-error[E0597]: borrowed value does not live long enough
+error[E0716]: temporary value dropped while borrowed
--> $DIR/borrowck-ref-into-rvalue.rs:13:11
|
LL | match Some("Hello".to_string()) {
- | ^^^^^^^^^^^^^^^^^^^^^^^^^ temporary value does not live long enough
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^ creates a temporary which is freed while still in use
...
LL | }
- | - temporary value only lives until here
+ | - temporary value is freed at the end of this statement
LL | println!("{}", *msg);
| ---- borrow later used here
|
error: aborting due to previous error
-For more information about this error, try `rustc --explain E0597`.
+For more information about this error, try `rustc --explain E0716`.
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
--> $DIR/issue-15480.rs:15:10
|
LL | &id(3)
error: aborting due to previous error
-For more information about this error, try `rustc --explain E0714`.
+For more information about this error, try `rustc --explain E0716`.
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
--> $DIR/regions-close-over-borrowed-ref-in-obj.rs:22:27
|
LL | let ss: &isize = &id(1);
error: aborting due to previous error
-For more information about this error, try `rustc --explain E0714`.
+For more information about this error, try `rustc --explain E0716`.
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
--> $DIR/slice-borrow.rs:16:28
|
LL | let x: &[isize] = &vec![1, 2, 3, 4, 5];
error: aborting due to previous error
-For more information about this error, try `rustc --explain E0714`.
+For more information about this error, try `rustc --explain E0716`.
LL | static PROMOTION_FAIL_S: Option<&'static WithDtor> = Some(&WithDtor);
| ^^^^^^^^ statics cannot evaluate destructors
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
--> $DIR/static-drop-scope.rs:19:60
|
LL | static PROMOTION_FAIL_S: Option<&'static WithDtor> = Some(&WithDtor);
LL | const PROMOTION_FAIL_C: Option<&'static WithDtor> = Some(&WithDtor);
| ^^^^^^^^ constants cannot evaluate destructors
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
--> $DIR/static-drop-scope.rs:23:59
|
LL | const PROMOTION_FAIL_C: Option<&'static WithDtor> = Some(&WithDtor);
error: aborting due to 8 previous errors
-Some errors occurred: E0493, E0714.
+Some errors occurred: E0493, E0716.
For more information about an error, try `rustc --explain E0493`.
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
--> $DIR/static-reference-to-fn-2.rs:28:22
|
LL | self_.statefn = &id(state2 as StateMachineFunc);
LL | | }
| |_^
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
--> $DIR/static-reference-to-fn-2.rs:34:22
|
LL | self_.statefn = &id(state3 as StateMachineFunc);
LL | | }
| |_^
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
--> $DIR/static-reference-to-fn-2.rs:40:22
|
LL | self_.statefn = &id(finished as StateMachineFunc);
LL | | }
| |_^
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
--> $DIR/static-reference-to-fn-2.rs:51:19
|
LL | statefn: &id(state1 as StateMachineFunc)
error: aborting due to 4 previous errors
-For more information about this error, try `rustc --explain E0714`.
+For more information about this error, try `rustc --explain E0716`.
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
--> $DIR/static-region-bound.rs:20:14
|
LL | let x = &id(3); //~ ERROR borrowed value does not live long enough
error: aborting due to previous error
-For more information about this error, try `rustc --explain E0714`.
+For more information about this error, try `rustc --explain E0716`.
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
--> $DIR/wf-misc-methods-issue-28609.rs:32:31
|
LL | s.transmute_inherent(&mut 42) //~ ERROR does not live long enough
LL | | }
| |_^
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
--> $DIR/wf-misc-methods-issue-28609.rs:63:15
|
LL | s << &mut 3 //~ ERROR does not live long enough
LL | | }
| |_^
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
--> $DIR/wf-misc-methods-issue-28609.rs:68:16
|
LL | s.shl(&mut 3) //~ ERROR does not live long enough
LL | | }
| |_^
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
--> $DIR/wf-misc-methods-issue-28609.rs:73:21
|
LL | S2::shl(s, &mut 3) //~ ERROR does not live long enough
error: aborting due to 6 previous errors
-Some errors occurred: E0597, E0714.
+Some errors occurred: E0597, E0716.
For more information about an error, try `rustc --explain E0597`.