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`
3
3
error: aborting due to 2 previous errors
Original file line number Diff line number Diff line change 2
2
//! operations, and their `Drop` implementation is called exactly once when the
3
3
//! value goes out of scope.
4
4
5
+ //@ run-pass
6
+
5
7
#![ allow( non_camel_case_types) ]
6
8
use std:: cell:: Cell ;
7
9
Original file line number Diff line number Diff line change 1
1
//! Check that the `Drop` implementation is called when a value goes out of scope.
2
2
3
+ //@ run-pass
4
+
3
5
#![ allow( non_camel_case_types) ]
4
6
use std:: cell:: Cell ;
5
7
Original file line number Diff line number Diff line change 1
1
error[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
3
3
|
4
4
LL | let x = *&x;
5
5
| ^^^ 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;
11
11
|
12
12
13
13
error[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
15
15
|
16
16
LL | let x = *&x;
17
17
| ^^^ 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;
23
23
|
24
24
25
25
error[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
27
27
|
28
28
LL | let x = *&x;
29
29
| ^^^ 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;
35
35
|
36
36
37
37
error[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
39
39
|
40
40
LL | let x = *&x;
41
41
| ^^^ 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