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