diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:02:58 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:02:58 +0000 |
commit | 698f8c2f01ea549d77d7dc3338a12e04c11057b9 (patch) | |
tree | 173a775858bd501c378080a10dca74132f05bc50 /src/test/ui/type/type-mismatch.stderr | |
parent | Initial commit. (diff) | |
download | rustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.tar.xz rustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.zip |
Adding upstream version 1.64.0+dfsg1.upstream/1.64.0+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/type/type-mismatch.stderr | 751 |
1 files changed, 751 insertions, 0 deletions
diff --git a/src/test/ui/type/type-mismatch.stderr b/src/test/ui/type/type-mismatch.stderr new file mode 100644 index 000000000..6c187bad0 --- /dev/null +++ b/src/test/ui/type/type-mismatch.stderr @@ -0,0 +1,751 @@ +error[E0308]: mismatched types + --> $DIR/type-mismatch.rs:17:17 + | +LL | want::<foo>(f); + | ----------- ^ expected struct `foo`, found `usize` + | | + | arguments to this function are incorrect + | +note: function defined here + --> $DIR/type-mismatch.rs:14:4 + | +LL | fn want<T>(t: T) {} + | ^^^^ ---- + +error[E0308]: mismatched types + --> $DIR/type-mismatch.rs:18:17 + | +LL | want::<bar>(f); + | ----------- ^ expected struct `bar`, found `usize` + | | + | arguments to this function are incorrect + | +note: function defined here + --> $DIR/type-mismatch.rs:14:4 + | +LL | fn want<T>(t: T) {} + | ^^^^ ---- + +error[E0308]: mismatched types + --> $DIR/type-mismatch.rs:19:24 + | +LL | want::<Foo<usize>>(f); + | ------------------ ^ expected struct `Foo`, found `usize` + | | + | arguments to this function are incorrect + | + = note: expected struct `Foo<usize>` + found type `usize` +note: function defined here + --> $DIR/type-mismatch.rs:14:4 + | +LL | fn want<T>(t: T) {} + | ^^^^ ---- + +error[E0308]: mismatched types + --> $DIR/type-mismatch.rs:20:27 + | +LL | want::<Foo<usize, B>>(f); + | --------------------- ^ expected struct `Foo`, found `usize` + | | + | arguments to this function are incorrect + | + = note: expected struct `Foo<usize, B>` + found type `usize` +note: function defined here + --> $DIR/type-mismatch.rs:14:4 + | +LL | fn want<T>(t: T) {} + | ^^^^ ---- + +error[E0308]: mismatched types + --> $DIR/type-mismatch.rs:21:22 + | +LL | want::<Foo<foo>>(f); + | ---------------- ^ expected struct `Foo`, found `usize` + | | + | arguments to this function are incorrect + | + = note: expected struct `Foo<foo>` + found type `usize` +note: function defined here + --> $DIR/type-mismatch.rs:14:4 + | +LL | fn want<T>(t: T) {} + | ^^^^ ---- + +error[E0308]: mismatched types + --> $DIR/type-mismatch.rs:22:25 + | +LL | want::<Foo<foo, B>>(f); + | ------------------- ^ expected struct `Foo`, found `usize` + | | + | arguments to this function are incorrect + | + = note: expected struct `Foo<foo, B>` + found type `usize` +note: function defined here + --> $DIR/type-mismatch.rs:14:4 + | +LL | fn want<T>(t: T) {} + | ^^^^ ---- + +error[E0308]: mismatched types + --> $DIR/type-mismatch.rs:23:22 + | +LL | want::<Foo<bar>>(f); + | ---------------- ^ expected struct `Foo`, found `usize` + | | + | arguments to this function are incorrect + | + = note: expected struct `Foo<bar>` + found type `usize` +note: function defined here + --> $DIR/type-mismatch.rs:14:4 + | +LL | fn want<T>(t: T) {} + | ^^^^ ---- + +error[E0308]: mismatched types + --> $DIR/type-mismatch.rs:24:25 + | +LL | want::<Foo<bar, B>>(f); + | ------------------- ^ expected struct `Foo`, found `usize` + | | + | arguments to this function are incorrect + | + = note: expected struct `Foo<bar, B>` + found type `usize` +note: function defined here + --> $DIR/type-mismatch.rs:14:4 + | +LL | fn want<T>(t: T) {} + | ^^^^ ---- + +error[E0308]: mismatched types + --> $DIR/type-mismatch.rs:28:19 + | +LL | want::<usize>(f); + | ------------- ^ expected `usize`, found struct `foo` + | | + | arguments to this function are incorrect + | +note: function defined here + --> $DIR/type-mismatch.rs:14:4 + | +LL | fn want<T>(t: T) {} + | ^^^^ ---- + +error[E0308]: mismatched types + --> $DIR/type-mismatch.rs:29:17 + | +LL | want::<bar>(f); + | ----------- ^ expected struct `bar`, found struct `foo` + | | + | arguments to this function are incorrect + | +note: function defined here + --> $DIR/type-mismatch.rs:14:4 + | +LL | fn want<T>(t: T) {} + | ^^^^ ---- + +error[E0308]: mismatched types + --> $DIR/type-mismatch.rs:30:24 + | +LL | want::<Foo<usize>>(f); + | ------------------ ^ expected struct `Foo`, found struct `foo` + | | + | arguments to this function are incorrect + | + = note: expected struct `Foo<usize>` + found struct `foo` +note: function defined here + --> $DIR/type-mismatch.rs:14:4 + | +LL | fn want<T>(t: T) {} + | ^^^^ ---- + +error[E0308]: mismatched types + --> $DIR/type-mismatch.rs:31:27 + | +LL | want::<Foo<usize, B>>(f); + | --------------------- ^ expected struct `Foo`, found struct `foo` + | | + | arguments to this function are incorrect + | + = note: expected struct `Foo<usize, B>` + found struct `foo` +note: function defined here + --> $DIR/type-mismatch.rs:14:4 + | +LL | fn want<T>(t: T) {} + | ^^^^ ---- + +error[E0308]: mismatched types + --> $DIR/type-mismatch.rs:32:22 + | +LL | want::<Foo<foo>>(f); + | ---------------- ^ expected struct `Foo`, found struct `foo` + | | + | arguments to this function are incorrect + | + = note: expected struct `Foo<foo>` + found struct `foo` +note: function defined here + --> $DIR/type-mismatch.rs:14:4 + | +LL | fn want<T>(t: T) {} + | ^^^^ ---- + +error[E0308]: mismatched types + --> $DIR/type-mismatch.rs:33:25 + | +LL | want::<Foo<foo, B>>(f); + | ------------------- ^ expected struct `Foo`, found struct `foo` + | | + | arguments to this function are incorrect + | + = note: expected struct `Foo<foo, B>` + found struct `foo` +note: function defined here + --> $DIR/type-mismatch.rs:14:4 + | +LL | fn want<T>(t: T) {} + | ^^^^ ---- + +error[E0308]: mismatched types + --> $DIR/type-mismatch.rs:34:22 + | +LL | want::<Foo<bar>>(f); + | ---------------- ^ expected struct `Foo`, found struct `foo` + | | + | arguments to this function are incorrect + | + = note: expected struct `Foo<bar>` + found struct `foo` +note: function defined here + --> $DIR/type-mismatch.rs:14:4 + | +LL | fn want<T>(t: T) {} + | ^^^^ ---- + +error[E0308]: mismatched types + --> $DIR/type-mismatch.rs:35:25 + | +LL | want::<Foo<bar, B>>(f); + | ------------------- ^ expected struct `Foo`, found struct `foo` + | | + | arguments to this function are incorrect + | + = note: expected struct `Foo<bar, B>` + found struct `foo` +note: function defined here + --> $DIR/type-mismatch.rs:14:4 + | +LL | fn want<T>(t: T) {} + | ^^^^ ---- + +error[E0308]: mismatched types + --> $DIR/type-mismatch.rs:39:19 + | +LL | want::<usize>(f); + | ------------- ^ expected `usize`, found struct `Foo` + | | + | arguments to this function are incorrect + | + = note: expected type `usize` + found struct `Foo<foo>` +note: function defined here + --> $DIR/type-mismatch.rs:14:4 + | +LL | fn want<T>(t: T) {} + | ^^^^ ---- + +error[E0308]: mismatched types + --> $DIR/type-mismatch.rs:40:17 + | +LL | want::<foo>(f); + | ----------- ^ expected struct `foo`, found struct `Foo` + | | + | arguments to this function are incorrect + | + = note: expected struct `foo` + found struct `Foo<foo>` +note: function defined here + --> $DIR/type-mismatch.rs:14:4 + | +LL | fn want<T>(t: T) {} + | ^^^^ ---- + +error[E0308]: mismatched types + --> $DIR/type-mismatch.rs:41:17 + | +LL | want::<bar>(f); + | ----------- ^ expected struct `bar`, found struct `Foo` + | | + | arguments to this function are incorrect + | + = note: expected struct `bar` + found struct `Foo<foo>` +note: function defined here + --> $DIR/type-mismatch.rs:14:4 + | +LL | fn want<T>(t: T) {} + | ^^^^ ---- + +error[E0308]: mismatched types + --> $DIR/type-mismatch.rs:42:24 + | +LL | want::<Foo<usize>>(f); + | ------------------ ^ expected `usize`, found struct `foo` + | | + | arguments to this function are incorrect + | + = note: expected struct `Foo<usize>` + found struct `Foo<foo>` +note: function defined here + --> $DIR/type-mismatch.rs:14:4 + | +LL | fn want<T>(t: T) {} + | ^^^^ ---- + +error[E0308]: mismatched types + --> $DIR/type-mismatch.rs:43:27 + | +LL | want::<Foo<usize, B>>(f); + | --------------------- ^ expected `usize`, found struct `foo` + | | + | arguments to this function are incorrect + | + = note: expected struct `Foo<usize, B>` + found struct `Foo<foo, A>` +note: function defined here + --> $DIR/type-mismatch.rs:14:4 + | +LL | fn want<T>(t: T) {} + | ^^^^ ---- + +error[E0308]: mismatched types + --> $DIR/type-mismatch.rs:44:25 + | +LL | want::<Foo<foo, B>>(f); + | ------------------- ^ expected struct `B`, found struct `A` + | | + | arguments to this function are incorrect + | + = note: expected struct `Foo<_, B>` + found struct `Foo<_, A>` +note: function defined here + --> $DIR/type-mismatch.rs:14:4 + | +LL | fn want<T>(t: T) {} + | ^^^^ ---- + +error[E0308]: mismatched types + --> $DIR/type-mismatch.rs:45:22 + | +LL | want::<Foo<bar>>(f); + | ---------------- ^ expected struct `bar`, found struct `foo` + | | + | arguments to this function are incorrect + | + = note: expected struct `Foo<bar>` + found struct `Foo<foo>` +note: function defined here + --> $DIR/type-mismatch.rs:14:4 + | +LL | fn want<T>(t: T) {} + | ^^^^ ---- + +error[E0308]: mismatched types + --> $DIR/type-mismatch.rs:46:25 + | +LL | want::<Foo<bar, B>>(f); + | ------------------- ^ expected struct `bar`, found struct `foo` + | | + | arguments to this function are incorrect + | + = note: expected struct `Foo<bar, B>` + found struct `Foo<foo, A>` +note: function defined here + --> $DIR/type-mismatch.rs:14:4 + | +LL | fn want<T>(t: T) {} + | ^^^^ ---- + +error[E0308]: mismatched types + --> $DIR/type-mismatch.rs:47:23 + | +LL | want::<&Foo<foo>>(f); + | ----------------- ^ + | | | + | | expected `&Foo<foo>`, found struct `Foo` + | | help: consider borrowing here: `&f` + | arguments to this function are incorrect + | + = note: expected reference `&Foo<foo>` + found struct `Foo<foo>` +note: function defined here + --> $DIR/type-mismatch.rs:14:4 + | +LL | fn want<T>(t: T) {} + | ^^^^ ---- + +error[E0308]: mismatched types + --> $DIR/type-mismatch.rs:48:26 + | +LL | want::<&Foo<foo, B>>(f); + | -------------------- ^ expected `&Foo<foo, B>`, found struct `Foo` + | | + | arguments to this function are incorrect + | + = note: expected reference `&Foo<foo, B>` + found struct `Foo<foo>` +note: function defined here + --> $DIR/type-mismatch.rs:14:4 + | +LL | fn want<T>(t: T) {} + | ^^^^ ---- + +error[E0308]: mismatched types + --> $DIR/type-mismatch.rs:52:19 + | +LL | want::<usize>(f); + | ------------- ^ expected `usize`, found struct `Foo` + | | + | arguments to this function are incorrect + | + = note: expected type `usize` + found struct `Foo<foo, B>` +note: function defined here + --> $DIR/type-mismatch.rs:14:4 + | +LL | fn want<T>(t: T) {} + | ^^^^ ---- + +error[E0308]: mismatched types + --> $DIR/type-mismatch.rs:53:17 + | +LL | want::<foo>(f); + | ----------- ^ expected struct `foo`, found struct `Foo` + | | + | arguments to this function are incorrect + | + = note: expected struct `foo` + found struct `Foo<foo, B>` +note: function defined here + --> $DIR/type-mismatch.rs:14:4 + | +LL | fn want<T>(t: T) {} + | ^^^^ ---- + +error[E0308]: mismatched types + --> $DIR/type-mismatch.rs:54:17 + | +LL | want::<bar>(f); + | ----------- ^ expected struct `bar`, found struct `Foo` + | | + | arguments to this function are incorrect + | + = note: expected struct `bar` + found struct `Foo<foo, B>` +note: function defined here + --> $DIR/type-mismatch.rs:14:4 + | +LL | fn want<T>(t: T) {} + | ^^^^ ---- + +error[E0308]: mismatched types + --> $DIR/type-mismatch.rs:55:24 + | +LL | want::<Foo<usize>>(f); + | ------------------ ^ expected `usize`, found struct `foo` + | | + | arguments to this function are incorrect + | + = note: expected struct `Foo<usize, A>` + found struct `Foo<foo, B>` +note: function defined here + --> $DIR/type-mismatch.rs:14:4 + | +LL | fn want<T>(t: T) {} + | ^^^^ ---- + +error[E0308]: mismatched types + --> $DIR/type-mismatch.rs:56:27 + | +LL | want::<Foo<usize, B>>(f); + | --------------------- ^ expected `usize`, found struct `foo` + | | + | arguments to this function are incorrect + | + = note: expected struct `Foo<usize, _>` + found struct `Foo<foo, _>` +note: function defined here + --> $DIR/type-mismatch.rs:14:4 + | +LL | fn want<T>(t: T) {} + | ^^^^ ---- + +error[E0308]: mismatched types + --> $DIR/type-mismatch.rs:57:22 + | +LL | want::<Foo<foo>>(f); + | ---------------- ^ expected struct `A`, found struct `B` + | | + | arguments to this function are incorrect + | + = note: expected struct `Foo<_, A>` + found struct `Foo<_, B>` +note: function defined here + --> $DIR/type-mismatch.rs:14:4 + | +LL | fn want<T>(t: T) {} + | ^^^^ ---- + +error[E0308]: mismatched types + --> $DIR/type-mismatch.rs:58:22 + | +LL | want::<Foo<bar>>(f); + | ---------------- ^ expected struct `bar`, found struct `foo` + | | + | arguments to this function are incorrect + | + = note: expected struct `Foo<bar, A>` + found struct `Foo<foo, B>` +note: function defined here + --> $DIR/type-mismatch.rs:14:4 + | +LL | fn want<T>(t: T) {} + | ^^^^ ---- + +error[E0308]: mismatched types + --> $DIR/type-mismatch.rs:59:25 + | +LL | want::<Foo<bar, B>>(f); + | ------------------- ^ expected struct `bar`, found struct `foo` + | | + | arguments to this function are incorrect + | + = note: expected struct `Foo<bar, _>` + found struct `Foo<foo, _>` +note: function defined here + --> $DIR/type-mismatch.rs:14:4 + | +LL | fn want<T>(t: T) {} + | ^^^^ ---- + +error[E0308]: mismatched types + --> $DIR/type-mismatch.rs:60:23 + | +LL | want::<&Foo<foo>>(f); + | ----------------- ^ expected `&Foo<foo>`, found struct `Foo` + | | + | arguments to this function are incorrect + | + = note: expected reference `&Foo<foo>` + found struct `Foo<foo, B>` +note: function defined here + --> $DIR/type-mismatch.rs:14:4 + | +LL | fn want<T>(t: T) {} + | ^^^^ ---- + +error[E0308]: mismatched types + --> $DIR/type-mismatch.rs:61:26 + | +LL | want::<&Foo<foo, B>>(f); + | -------------------- ^ + | | | + | | expected `&Foo<foo, B>`, found struct `Foo` + | | help: consider borrowing here: `&f` + | arguments to this function are incorrect + | + = note: expected reference `&Foo<foo, B>` + found struct `Foo<foo, B>` +note: function defined here + --> $DIR/type-mismatch.rs:14:4 + | +LL | fn want<T>(t: T) {} + | ^^^^ ---- + +error[E0308]: mismatched types + --> $DIR/type-mismatch.rs:65:19 + | +LL | want::<usize>(f); + | ------------- ^ expected `usize`, found struct `Foo` + | | + | arguments to this function are incorrect + | + = note: expected type `usize` + found struct `Foo<foo, B, A>` +note: function defined here + --> $DIR/type-mismatch.rs:14:4 + | +LL | fn want<T>(t: T) {} + | ^^^^ ---- + +error[E0308]: mismatched types + --> $DIR/type-mismatch.rs:66:17 + | +LL | want::<foo>(f); + | ----------- ^ expected struct `foo`, found struct `Foo` + | | + | arguments to this function are incorrect + | + = note: expected struct `foo` + found struct `Foo<foo, B, A>` +note: function defined here + --> $DIR/type-mismatch.rs:14:4 + | +LL | fn want<T>(t: T) {} + | ^^^^ ---- + +error[E0308]: mismatched types + --> $DIR/type-mismatch.rs:67:17 + | +LL | want::<bar>(f); + | ----------- ^ expected struct `bar`, found struct `Foo` + | | + | arguments to this function are incorrect + | + = note: expected struct `bar` + found struct `Foo<foo, B, A>` +note: function defined here + --> $DIR/type-mismatch.rs:14:4 + | +LL | fn want<T>(t: T) {} + | ^^^^ ---- + +error[E0308]: mismatched types + --> $DIR/type-mismatch.rs:68:24 + | +LL | want::<Foo<usize>>(f); + | ------------------ ^ expected `usize`, found struct `foo` + | | + | arguments to this function are incorrect + | + = note: expected struct `Foo<usize, A, B>` + found struct `Foo<foo, B, A>` +note: function defined here + --> $DIR/type-mismatch.rs:14:4 + | +LL | fn want<T>(t: T) {} + | ^^^^ ---- + +error[E0308]: mismatched types + --> $DIR/type-mismatch.rs:69:27 + | +LL | want::<Foo<usize, B>>(f); + | --------------------- ^ expected `usize`, found struct `foo` + | | + | arguments to this function are incorrect + | + = note: expected struct `Foo<usize, _, B>` + found struct `Foo<foo, _, A>` +note: function defined here + --> $DIR/type-mismatch.rs:14:4 + | +LL | fn want<T>(t: T) {} + | ^^^^ ---- + +error[E0308]: mismatched types + --> $DIR/type-mismatch.rs:70:22 + | +LL | want::<Foo<foo>>(f); + | ---------------- ^ expected struct `A`, found struct `B` + | | + | arguments to this function are incorrect + | + = note: expected struct `Foo<_, A, B>` + found struct `Foo<_, B, A>` +note: function defined here + --> $DIR/type-mismatch.rs:14:4 + | +LL | fn want<T>(t: T) {} + | ^^^^ ---- + +error[E0308]: mismatched types + --> $DIR/type-mismatch.rs:71:25 + | +LL | want::<Foo<foo, B>>(f); + | ------------------- ^ expected struct `B`, found struct `A` + | | + | arguments to this function are incorrect + | + = note: expected struct `Foo<_, _, B>` + found struct `Foo<_, _, A>` +note: function defined here + --> $DIR/type-mismatch.rs:14:4 + | +LL | fn want<T>(t: T) {} + | ^^^^ ---- + +error[E0308]: mismatched types + --> $DIR/type-mismatch.rs:72:22 + | +LL | want::<Foo<bar>>(f); + | ---------------- ^ expected struct `bar`, found struct `foo` + | | + | arguments to this function are incorrect + | + = note: expected struct `Foo<bar, A, B>` + found struct `Foo<foo, B, A>` +note: function defined here + --> $DIR/type-mismatch.rs:14:4 + | +LL | fn want<T>(t: T) {} + | ^^^^ ---- + +error[E0308]: mismatched types + --> $DIR/type-mismatch.rs:73:25 + | +LL | want::<Foo<bar, B>>(f); + | ------------------- ^ expected struct `bar`, found struct `foo` + | | + | arguments to this function are incorrect + | + = note: expected struct `Foo<bar, _, B>` + found struct `Foo<foo, _, A>` +note: function defined here + --> $DIR/type-mismatch.rs:14:4 + | +LL | fn want<T>(t: T) {} + | ^^^^ ---- + +error[E0308]: mismatched types + --> $DIR/type-mismatch.rs:74:23 + | +LL | want::<&Foo<foo>>(f); + | ----------------- ^ expected `&Foo<foo>`, found struct `Foo` + | | + | arguments to this function are incorrect + | + = note: expected reference `&Foo<foo>` + found struct `Foo<foo, B, A>` +note: function defined here + --> $DIR/type-mismatch.rs:14:4 + | +LL | fn want<T>(t: T) {} + | ^^^^ ---- + +error[E0308]: mismatched types + --> $DIR/type-mismatch.rs:75:26 + | +LL | want::<&Foo<foo, B>>(f); + | -------------------- ^ expected `&Foo<foo, B>`, found struct `Foo` + | | + | arguments to this function are incorrect + | + = note: expected reference `&Foo<foo, B>` + found struct `Foo<foo, B, A>` +note: function defined here + --> $DIR/type-mismatch.rs:14:4 + | +LL | fn want<T>(t: T) {} + | ^^^^ ---- + +error: aborting due to 47 previous errors + +For more information about this error, try `rustc --explain E0308`. |