File tree Expand file tree Collapse file tree 4 files changed +10
-6
lines changed Expand file tree Collapse file tree 4 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 1- $DIR/error-format-short.rs:8 :9: error[E0308]: mismatched types: expected `u32`, found `String`
2- $DIR/error-format-short.rs:10 :7: error[E0599]: no method named `salut` found for type `u32` in the current scope: method not found in `u32`
1+ $DIR/error-format-short.rs:9 :9: error[E0308]: mismatched types: expected `u32`, found `String`
2+ $DIR/error-format-short.rs:11 :7: error[E0599]: no method named `salut` found for type `u32` in the current scope: method not found in `u32`
33error: aborting due to 2 previous errors
Original file line number Diff line number Diff line change 22//! operations, and their `Drop` implementation is called exactly once when the
33//! value goes out of scope.
44
5+ //@ run-pass
6+
57#![ allow( non_camel_case_types) ]
68use std:: cell:: Cell ;
79
Original file line number Diff line number Diff line change 11//! Check that the `Drop` implementation is called when a value goes out of scope.
22
3+ //@ run-pass
4+
35#![ allow( non_camel_case_types) ]
46use std:: cell:: Cell ;
57
Original file line number Diff line number Diff line change 11error[E0507]: cannot move out of a shared reference
2- --> $DIR/atomic-types-not-copyable.rs:10 :13
2+ --> $DIR/atomic-types-not-copyable.rs:11 :13
33 |
44LL | let x = *&x;
55 | ^^^ move occurs because value has type `std::sync::atomic::AtomicBool`, which does not implement the `Copy` trait
@@ -11,7 +11,7 @@ LL + let x = &x;
1111 |
1212
1313error[E0507]: cannot move out of a shared reference
14- --> $DIR/atomic-types-not-copyable.rs:12 :13
14+ --> $DIR/atomic-types-not-copyable.rs:13 :13
1515 |
1616LL | let x = *&x;
1717 | ^^^ move occurs because value has type `std::sync::atomic::AtomicIsize`, which does not implement the `Copy` trait
@@ -23,7 +23,7 @@ LL + let x = &x;
2323 |
2424
2525error[E0507]: cannot move out of a shared reference
26- --> $DIR/atomic-types-not-copyable.rs:14 :13
26+ --> $DIR/atomic-types-not-copyable.rs:15 :13
2727 |
2828LL | let x = *&x;
2929 | ^^^ move occurs because value has type `std::sync::atomic::AtomicUsize`, which does not implement the `Copy` trait
@@ -35,7 +35,7 @@ LL + let x = &x;
3535 |
3636
3737error[E0507]: cannot move out of a shared reference
38- --> $DIR/atomic-types-not-copyable.rs:16 :13
38+ --> $DIR/atomic-types-not-copyable.rs:17 :13
3939 |
4040LL | let x = *&x;
4141 | ^^^ move occurs because value has type `std::sync::atomic::AtomicPtr<usize>`, which does not implement the `Copy` trait
You can’t perform that action at this time.
0 commit comments