diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:19:03 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:19:03 +0000 |
commit | 64d98f8ee037282c35007b64c2649055c56af1db (patch) | |
tree | 5492bcf97fce41ee1c0b1cc2add283f3e66cdab0 /tests/ui/resolve/resolve-primitive-fallback.stderr | |
parent | Adding debian version 1.67.1+dfsg1-1. (diff) | |
download | rustc-64d98f8ee037282c35007b64c2649055c56af1db.tar.xz rustc-64d98f8ee037282c35007b64c2649055c56af1db.zip |
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/ui/resolve/resolve-primitive-fallback.stderr')
-rw-r--r-- | tests/ui/resolve/resolve-primitive-fallback.stderr | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/tests/ui/resolve/resolve-primitive-fallback.stderr b/tests/ui/resolve/resolve-primitive-fallback.stderr new file mode 100644 index 000000000..964302e92 --- /dev/null +++ b/tests/ui/resolve/resolve-primitive-fallback.stderr @@ -0,0 +1,39 @@ +error[E0423]: expected value, found builtin type `u16` + --> $DIR/resolve-primitive-fallback.rs:3:23 + | +LL | std::mem::size_of(u16); + | ^^^ not a value + +error[E0412]: cannot find type `u8` in the crate root + --> $DIR/resolve-primitive-fallback.rs:8:14 + | +LL | let _: ::u8; + | ^^ not found in the crate root + | +help: consider importing this builtin type + | +LL | use std::primitive::u8; + | +help: if you import `u8`, refer to it directly + | +LL - let _: ::u8; +LL + let _: u8; + | + +error[E0061]: this function takes 0 arguments but 1 argument was supplied + --> $DIR/resolve-primitive-fallback.rs:3:5 + | +LL | std::mem::size_of(u16); + | ^^^^^^^^^^^^^^^^^ --- argument unexpected + | +note: function defined here + --> $SRC_DIR/core/src/mem/mod.rs:LL:COL +help: remove the extra argument + | +LL | std::mem::size_of(); + | ~~ + +error: aborting due to 3 previous errors + +Some errors have detailed explanations: E0061, E0412, E0423. +For more information about an error, try `rustc --explain E0061`. |