]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0423]: expected value, found builtin type `u16` |
0731742a | 2 | --> $DIR/resolve-primitive-fallback.rs:3:23 |
b7449926 XL |
3 | | |
4 | LL | std::mem::size_of(u16); | |
5 | | ^^^ not a value | |
6 | ||
7 | error[E0412]: cannot find type `u8` in the crate root | |
0731742a | 8 | --> $DIR/resolve-primitive-fallback.rs:8:14 |
b7449926 XL |
9 | | |
10 | LL | let _: ::u8; | |
11 | | ^^ not found in the crate root | |
74b04a01 | 12 | | |
f9f354fc | 13 | help: consider importing this builtin type |
74b04a01 XL |
14 | | |
15 | LL | use std::primitive::u8; | |
16 | | | |
04454e1e FG |
17 | help: if you import `u8`, refer to it directly |
18 | | | |
19 | LL - let _: ::u8; | |
20 | LL + let _: u8; | |
21 | | | |
b7449926 | 22 | |
74b04a01 | 23 | error[E0061]: this function takes 0 arguments but 1 argument was supplied |
0731742a | 24 | --> $DIR/resolve-primitive-fallback.rs:3:5 |
b7449926 XL |
25 | | |
26 | LL | std::mem::size_of(u16); | |
74b04a01 XL |
27 | | ^^^^^^^^^^^^^^^^^ --- supplied 1 argument |
28 | | | | |
29 | | expected 0 arguments | |
5869c6ff XL |
30 | | |
31 | note: function defined here | |
32 | --> $SRC_DIR/core/src/mem/mod.rs:LL:COL | |
33 | | | |
34 | LL | pub const fn size_of<T>() -> usize { | |
35 | | ^^^^^^^ | |
b7449926 XL |
36 | |
37 | error: aborting due to 3 previous errors | |
38 | ||
48663c56 | 39 | Some errors have detailed explanations: E0061, E0412, E0423. |
b7449926 | 40 | For more information about an error, try `rustc --explain E0061`. |