diff options
Diffstat (limited to 'tests/ui/atomic-from-mut-not-available.rs')
| -rw-r--r-- | tests/ui/atomic-from-mut-not-available.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/atomic-from-mut-not-available.rs b/tests/ui/atomic-from-mut-not-available.rs new file mode 100644 index 00000000000..bf946160075 --- /dev/null +++ b/tests/ui/atomic-from-mut-not-available.rs @@ -0,0 +1,7 @@ +// only-x86 +// only-linux + +fn main() { + core::sync::atomic::AtomicU64::from_mut(&mut 0u64); + //~^ ERROR: no function or associated item named `from_mut` found for struct `AtomicU64` +} |
