about summary refs log tree commit diff
path: root/tests/ui/intrinsics/issue-28575.stderr
blob: 09c52aa4c9982f12200116d30306e3c507639877 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
error[E0703]: invalid ABI: found `rust-intrinsic`
  --> $DIR/issue-28575.rs:4:28
   |
LL |     pub static FOO: extern "rust-intrinsic" fn();
   |                            ^^^^^^^^^^^^^^^^ invalid ABI
   |
   = note: invoke `rustc --print=calling-conventions` for a full list of supported calling conventions

error[E0133]: use of extern static is unsafe and requires unsafe function or block
  --> $DIR/issue-28575.rs:9:5
   |
LL |     FOO()
   |     ^^^ use of extern static
   |
   = note: extern statics are not controlled by the Rust type system: invalid data, aliasing violations or data races will cause undefined behavior

error: aborting due to 2 previous errors

Some errors have detailed explanations: E0133, E0703.
For more information about an error, try `rustc --explain E0133`.