2018-08-08 07:28:26 -05:00
|
|
|
error[E0423]: expected value, found builtin type `u16`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/resolve-primitive-fallback.rs:3:23
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | std::mem::size_of(u16);
|
|
|
|
| ^^^ not a value
|
|
|
|
|
|
|
|
error[E0412]: cannot find type `u8` in the crate root
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/resolve-primitive-fallback.rs:8:14
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | let _: ::u8;
|
|
|
|
| ^^ not found in the crate root
|
2019-12-26 11:55:13 -06:00
|
|
|
|
|
2022-05-02 21:07:47 -05:00
|
|
|
help: consider importing this builtin type
|
2019-12-26 11:55:13 -06:00
|
|
|
|
|
|
|
|
LL | use std::primitive::u8;
|
|
|
|
|
|
2022-05-02 21:07:47 -05:00
|
|
|
help: if you import `u8`, refer to it directly
|
2022-04-23 18:41:36 -05:00
|
|
|
|
|
|
|
|
LL - let _: ::u8;
|
|
|
|
LL + let _: u8;
|
2022-06-08 12:34:57 -05:00
|
|
|
|
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2020-02-05 23:08:07 -06:00
|
|
|
error[E0061]: this function takes 0 arguments but 1 argument was supplied
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/resolve-primitive-fallback.rs:3:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | std::mem::size_of(u16);
|
2023-02-01 11:44:48 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^ ---
|
|
|
|
| |
|
|
|
|
| unexpected argument
|
|
|
|
| help: remove the extra argument
|
2021-01-02 12:45:11 -06:00
|
|
|
|
|
|
|
|
note: function defined here
|
|
|
|
--> $SRC_DIR/core/src/mem/mod.rs:LL:COL
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|
2019-04-17 12:26:38 -05:00
|
|
|
Some errors have detailed explanations: E0061, E0412, E0423.
|
2018-08-08 07:28:26 -05:00
|
|
|
For more information about an error, try `rustc --explain E0061`.
|