1
1
error[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
3
3
|
4
4
LL | static FOO: Sync = AtomicUsize::new(0);
5
5
| ^^^^^^^^^^^ use of undeclared type `AtomicUsize`
@@ -10,7 +10,7 @@ LL + use std::sync::atomic::AtomicUsize;
10
10
|
11
11
12
12
warning: 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
14
14
|
15
15
LL | static FOO: Sync = AtomicUsize::new(0);
16
16
| ^^^^
@@ -24,7 +24,7 @@ LL | static FOO: Box<dyn Sync> = AtomicUsize::new(0);
24
24
| +++++++ +
25
25
26
26
warning: 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
28
28
|
29
29
LL | static FOO: Sync = AtomicUsize::new(0);
30
30
| ^^^^
@@ -38,15 +38,15 @@ LL | static FOO: Box<dyn Sync> = AtomicUsize::new(0);
38
38
| +++++++ +
39
39
40
40
error[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
42
42
|
43
43
LL | static FOO: Sync = AtomicUsize::new(0);
44
44
| ^^^^ doesn't have a size known at compile-time
45
45
|
46
46
= help: the trait `Sized` is not implemented for `(dyn Sync + 'static)`
47
47
48
48
error[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
50
50
|
51
51
LL | static FOO: Sync = AtomicUsize::new(0);
52
52
| ^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
0 commit comments