]> git.proxmox.com Git - rustc.git/blame - src/test/ui/consts/miri_unleashed/assoc_const.stderr
New upstream version 1.64.0+dfsg1
[rustc.git] / src / test / ui / consts / miri_unleashed / assoc_const.stderr
CommitLineData
9fa01778 1error[E0080]: erroneous constant used
dfeec247 2 --> $DIR/assoc_const.rs:31:13
9fa01778 3 |
532ac7d7 4LL | let y = <String as Bar<Vec<u32>, String>>::F;
9fa01778
XL
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ referenced constant has errors
6
f9f354fc
XL
7warning: skipping const checks
8 |
9help: skipping check that does not even have a feature gate
10 --> $DIR/assoc_const.rs:14:20
11 |
12LL | const F: u32 = (U::X, 42).1;
13 | ^^^^^^^^^^
14
ba9703b0 15error: aborting due to previous error; 1 warning emitted
9fa01778
XL
16
17For more information about this error, try `rustc --explain E0080`.
064997fb
FG
18Future incompatibility report: Future breakage diagnostic:
19warning: any use of this value will cause an error
20 --> $SRC_DIR/core/src/ptr/mod.rs:LL:COL
21 |
22LL | pub unsafe fn drop_in_place<T: ?Sized>(to_drop: *mut T) {
23 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
24 | |
25 | calling non-const function `<Vec<u32> as Drop>::drop`
26 | inside `std::ptr::drop_in_place::<Vec<u32>> - shim(Some(Vec<u32>))` at $SRC_DIR/core/src/ptr/mod.rs:LL:COL
27 | inside `std::ptr::drop_in_place::<(Vec<u32>, u32)> - shim(Some((Vec<u32>, u32)))` at $SRC_DIR/core/src/ptr/mod.rs:LL:COL
28 | inside `<String as Bar<Vec<u32>, String>>::F` at $DIR/assoc_const.rs:14:31
29 |
30 ::: $DIR/assoc_const.rs:14:5
31 |
32LL | const F: u32 = (U::X, 42).1;
33 | ------------
34 |
35note: the lint level is defined here
36 --> $DIR/assoc_const.rs:4:10
37 |
38LL | #![allow(const_err)]
39 | ^^^^^^^^^
40 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
41 = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
42