fork/rust

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

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
905 B29 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: possible candidate is found in another module, you can import it into scope
14   |
15LL | use std::primitive::u8;
16   |
17
18error[E0061]: this function takes 0 arguments but 1 argument was supplied
19  --> $DIR/resolve-primitive-fallback.rs:3:5
20   |
21LL |     std::mem::size_of(u16);
22   |     ^^^^^^^^^^^^^^^^^ --- supplied 1 argument
23   |     |
24   |     expected 0 arguments
25
26error: aborting due to 3 previous errors
27
28Some errors have detailed explanations: E0061, E0412, E0423.
29For more information about an error, try `rustc --explain E0061`.