os-rust/tests/ui/resolve/resolve-primitive-fallback.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
1.1 KiB
Text
Raw Normal View History

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