11error[E0433]: failed to resolve: use of undeclared type `AtomicUsize`
2- --> $DIR/const_refs_to_static-ice-121413.rs:11 :24
2+ --> $DIR/const_refs_to_static-ice-121413.rs:12 :24
33 |
44LL | static FOO: Sync = AtomicUsize::new(0);
55 | ^^^^^^^^^^^ use of undeclared type `AtomicUsize`
@@ -10,7 +10,7 @@ LL + use std::sync::atomic::AtomicUsize;
1010 |
1111
1212warning: trait objects without an explicit `dyn` are deprecated
13- --> $DIR/const_refs_to_static-ice-121413.rs:11 :17
13+ --> $DIR/const_refs_to_static-ice-121413.rs:12 :17
1414 |
1515LL | static FOO: Sync = AtomicUsize::new(0);
1616 | ^^^^
@@ -24,7 +24,7 @@ LL | static FOO: Box<dyn Sync> = AtomicUsize::new(0);
2424 | +++++++ +
2525
2626warning: trait objects without an explicit `dyn` are deprecated
27- --> $DIR/const_refs_to_static-ice-121413.rs:11 :17
27+ --> $DIR/const_refs_to_static-ice-121413.rs:12 :17
2828 |
2929LL | static FOO: Sync = AtomicUsize::new(0);
3030 | ^^^^
@@ -38,15 +38,15 @@ LL | static FOO: Box<dyn Sync> = AtomicUsize::new(0);
3838 | +++++++ +
3939
4040error[E0277]: the size for values of type `(dyn Sync + 'static)` cannot be known at compilation time
41- --> $DIR/const_refs_to_static-ice-121413.rs:11 :17
41+ --> $DIR/const_refs_to_static-ice-121413.rs:12 :17
4242 |
4343LL | static FOO: Sync = AtomicUsize::new(0);
4444 | ^^^^ doesn't have a size known at compile-time
4545 |
4646 = help: the trait `Sized` is not implemented for `(dyn Sync + 'static)`
4747
4848error[E0277]: the size for values of type `(dyn Sync + 'static)` cannot be known at compilation time
49- --> $DIR/const_refs_to_static-ice-121413.rs:11 :24
49+ --> $DIR/const_refs_to_static-ice-121413.rs:12 :24
5050 |
5151LL | static FOO: Sync = AtomicUsize::new(0);
5252 | ^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
0 commit comments