mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 18:53:39 +00:00
15 lines
493 B
Plaintext
15 lines
493 B
Plaintext
warning: use of deprecated constant `std::sync::atomic::ATOMIC_ISIZE_INIT`: the `new` function is now preferred
|
|
--> $DIR/atomic_initializers.rs:8:27
|
|
|
|
|
LL | static FOO: AtomicIsize = ATOMIC_ISIZE_INIT;
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: `#[warn(deprecated)]` on by default
|
|
help: replace the use of the deprecated constant
|
|
|
|
|
LL | static FOO: AtomicIsize = AtomicIsize::new(0);
|
|
| ~~~~~~~~~~~~~~~~~~~
|
|
|
|
warning: 1 warning emitted
|
|
|