diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:19:13 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:19:13 +0000 |
commit | 218caa410aa38c29984be31a5229b9fa717560ee (patch) | |
tree | c54bd55eeb6e4c508940a30e94c0032fbd45d677 /src/test/ui/drop/repeat-drop-2.stderr | |
parent | Releasing progress-linux version 1.67.1+dfsg1-1~progress7.99u1. (diff) | |
download | rustc-218caa410aa38c29984be31a5229b9fa717560ee.tar.xz rustc-218caa410aa38c29984be31a5229b9fa717560ee.zip |
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/ui/drop/repeat-drop-2.stderr')
-rw-r--r-- | src/test/ui/drop/repeat-drop-2.stderr | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/src/test/ui/drop/repeat-drop-2.stderr b/src/test/ui/drop/repeat-drop-2.stderr deleted file mode 100644 index f030228f7..000000000 --- a/src/test/ui/drop/repeat-drop-2.stderr +++ /dev/null @@ -1,41 +0,0 @@ -error[E0382]: use of moved value: `foo` - --> $DIR/repeat-drop-2.rs:4:17 - | -LL | let foo = String::new(); - | --- move occurs because `foo` has type `String`, which does not implement the `Copy` trait -LL | let _bar = foo; - | --- value moved here -LL | let _baz = [foo; 0]; - | ^^^ value used here after move - | -help: consider cloning the value if the performance cost is acceptable - | -LL | let _bar = foo.clone(); - | ++++++++ - -error[E0493]: destructor of `String` cannot be evaluated at compile-time - --> $DIR/repeat-drop-2.rs:7:25 - | -LL | const _: [String; 0] = [String::new(); 0]; - | -^^^^^^^^^^^^^---- - | || - | |the destructor for this type cannot be evaluated in constants - | value is dropped here - -error[E0381]: used binding `x` isn't initialized - --> $DIR/repeat-drop-2.rs:12:14 - | -LL | let x: u8; - | - binding declared here but left uninitialized -LL | let _ = [x; 0]; - | ^ `x` used here but it isn't initialized - | -help: consider assigning a value - | -LL | let x: u8 = 0; - | +++ - -error: aborting due to 3 previous errors - -Some errors have detailed explanations: E0381, E0382, E0493. -For more information about an error, try `rustc --explain E0381`. |