fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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