summaryrefslogtreecommitdiffstats
path: root/src/test/ui/mismatched_types/issue-26480.stderr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:03 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:03 +0000
commit64d98f8ee037282c35007b64c2649055c56af1db (patch)
tree5492bcf97fce41ee1c0b1cc2add283f3e66cdab0 /src/test/ui/mismatched_types/issue-26480.stderr
parentAdding debian version 1.67.1+dfsg1-1. (diff)
downloadrustc-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 'src/test/ui/mismatched_types/issue-26480.stderr')
-rw-r--r--src/test/ui/mismatched_types/issue-26480.stderr37
1 files changed, 0 insertions, 37 deletions
diff --git a/src/test/ui/mismatched_types/issue-26480.stderr b/src/test/ui/mismatched_types/issue-26480.stderr
deleted file mode 100644
index ae10a0067..000000000
--- a/src/test/ui/mismatched_types/issue-26480.stderr
+++ /dev/null
@@ -1,37 +0,0 @@
-error[E0308]: mismatched types
- --> $DIR/issue-26480.rs:16:19
- |
-LL | write(stdout, $arr.as_ptr() as *const i8,
- | ----- arguments to this function are incorrect
-LL | $arr.len() * size_of($arr[0]));
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `u64`, found `usize`
-...
-LL | write!(hello);
- | ------------- in this macro invocation
- |
-note: function defined here
- --> $DIR/issue-26480.rs:2:8
- |
-LL | fn write(fildes: i32, buf: *const i8, nbyte: u64) -> i64;
- | ^^^^^
- = note: this error originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info)
-help: you can convert a `usize` to a `u64` and panic if the converted value doesn't fit
- |
-LL | ($arr.len() * size_of($arr[0])).try_into().unwrap());
- | + +++++++++++++++++++++
-
-error[E0605]: non-primitive cast: `{integer}` as `()`
- --> $DIR/issue-26480.rs:22:19
- |
-LL | ($x:expr) => ($x as ())
- | ^^^^^^^^ an `as` expression can only be used to convert between primitive types or to coerce to a specific trait object
-...
-LL | cast!(2);
- | -------- in this macro invocation
- |
- = note: this error originates in the macro `cast` (in Nightly builds, run with -Z macro-backtrace for more info)
-
-error: aborting due to 2 previous errors
-
-Some errors have detailed explanations: E0308, E0605.
-For more information about an error, try `rustc --explain E0308`.