Skip to content

Commit bcc1d56

Browse files
committed
Test that AtomicU64::from_mut is not available on x86 linux.
1 parent 5d6f1a1 commit bcc1d56

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// only-x86
2+
// only-linux
3+
4+
fn main() {
5+
core::sync::atomic::AtomicU64::from_mut(&mut 0u64);
6+
//~^ ERROR: no function or associated item named `from_mut` found for struct `AtomicU64`
7+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
error[E0599]: no function or associated item named `from_mut` found for struct `AtomicU64` in the current scope
2+
--> $DIR/atomic-from-mut-not-available.rs:5:36
3+
|
4+
LL | core::sync::atomic::AtomicU64::from_mut(&mut 0u64);
5+
| ^^^^^^^^ function or associated item not found in `AtomicU64`
6+
7+
error: aborting due to previous error
8+
9+
For more information about this error, try `rustc --explain E0599`.

0 commit comments

Comments
 (0)