2020-07-25 13:49:46 -04:00
|
|
|
warning: use of deprecated constant `std::sync::atomic::ATOMIC_ISIZE_INIT`: the `new` function is now preferred
|
2019-01-30 17:47:36 +01:00
|
|
|
--> $DIR/atomic_initializers.rs:8:27
|
|
|
|
|
|
|
|
|
LL | static FOO: AtomicIsize = ATOMIC_ISIZE_INIT;
|
2022-06-29 09:36:12 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2019-01-30 17:47:36 +01:00
|
|
|
|
|
2019-07-16 22:17:38 +02:00
|
|
|
= note: `#[warn(deprecated)]` on by default
|
2022-06-29 09:36:12 +01:00
|
|
|
help: replace the use of the deprecated constant
|
|
|
|
|
|
|
|
|
LL | static FOO: AtomicIsize = AtomicIsize::new(0);
|
|
|
|
| ~~~~~~~~~~~~~~~~~~~
|
2019-01-30 17:47:36 +01:00
|
|
|
|
2020-03-11 16:30:09 +01:00
|
|
|
warning: 1 warning emitted
|
|
|
|
|