summaryrefslogtreecommitdiffstats
path: root/src/test/ui/deprecation/atomic_initializers.stderr
blob: 30fcc9de6181eb72625f5035732c4c8920386013 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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