You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error: items outside of `unsafe extern { }` cannot be declared with `safe` safety qualifier
2
+
--> $DIR/safe-outside-extern.rs:4:1
3
+
|
4
+
LL | safe fn foo() {}
5
+
| ^^^^^^^^^^^^^^^^
6
+
7
+
error: items outside of `unsafe extern { }` cannot be declared with `safe` safety qualifier
8
+
--> $DIR/safe-outside-extern.rs:8:1
9
+
|
10
+
LL | safe static FOO: i32 = 1;
11
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^
12
+
13
+
error: items outside of `unsafe extern { }` cannot be declared with `safe` safety qualifier
14
+
--> $DIR/safe-outside-extern.rs:13:5
15
+
|
16
+
LL | safe fn foo();
17
+
| ^^^^^^^^^^^^^^
18
+
19
+
error: items outside of `unsafe extern { }` cannot be declared with `safe` safety qualifier
20
+
--> $DIR/safe-outside-extern.rs:19:5
21
+
|
22
+
LL | safe fn foo() {}
23
+
| ^^^^^^^^^^^^^^^^
24
+
25
+
error: function pointers cannot be declared with `safe` safety qualifier
26
+
--> $DIR/safe-outside-extern.rs:24:14
27
+
|
28
+
LL | type FnPtr = safe fn(i32, i32) -> i32;
29
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^
30
+
31
+
error[E0658]: `unsafe extern {}` blocks and `safe` keyword are experimental
32
+
--> $DIR/safe-outside-extern.rs:4:1
33
+
|
34
+
LL | safe fn foo() {}
35
+
| ^^^^
36
+
|
37
+
= note: see issue #123743 <https://github.com/rust-lang/rust/issues/123743> for more information
38
+
= help: add `#![feature(unsafe_extern_blocks)]` to the crate attributes to enable
39
+
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
40
+
41
+
error[E0658]: `unsafe extern {}` blocks and `safe` keyword are experimental
42
+
--> $DIR/safe-outside-extern.rs:8:1
43
+
|
44
+
LL | safe static FOO: i32 = 1;
45
+
| ^^^^
46
+
|
47
+
= note: see issue #123743 <https://github.com/rust-lang/rust/issues/123743> for more information
48
+
= help: add `#![feature(unsafe_extern_blocks)]` to the crate attributes to enable
49
+
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
50
+
51
+
error[E0658]: `unsafe extern {}` blocks and `safe` keyword are experimental
52
+
--> $DIR/safe-outside-extern.rs:13:5
53
+
|
54
+
LL | safe fn foo();
55
+
| ^^^^
56
+
|
57
+
= note: see issue #123743 <https://github.com/rust-lang/rust/issues/123743> for more information
58
+
= help: add `#![feature(unsafe_extern_blocks)]` to the crate attributes to enable
59
+
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
60
+
61
+
error[E0658]: `unsafe extern {}` blocks and `safe` keyword are experimental
62
+
--> $DIR/safe-outside-extern.rs:19:5
63
+
|
64
+
LL | safe fn foo() {}
65
+
| ^^^^
66
+
|
67
+
= note: see issue #123743 <https://github.com/rust-lang/rust/issues/123743> for more information
68
+
= help: add `#![feature(unsafe_extern_blocks)]` to the crate attributes to enable
69
+
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
70
+
71
+
error[E0658]: `unsafe extern {}` blocks and `safe` keyword are experimental
72
+
--> $DIR/safe-outside-extern.rs:24:14
73
+
|
74
+
LL | type FnPtr = safe fn(i32, i32) -> i32;
75
+
| ^^^^
76
+
|
77
+
= note: see issue #123743 <https://github.com/rust-lang/rust/issues/123743> for more information
78
+
= help: add `#![feature(unsafe_extern_blocks)]` to the crate attributes to enable
79
+
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
80
+
81
+
error: aborting due to 10 previous errors
82
+
83
+
For more information about this error, try `rustc --explain E0658`.
0 commit comments