summaryrefslogtreecommitdiffstats
path: root/src/test/ui/fn/fn-item-type.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/fn/fn-item-type.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/fn/fn-item-type.stderr')
-rw-r--r--src/test/ui/fn/fn-item-type.stderr97
1 files changed, 0 insertions, 97 deletions
diff --git a/src/test/ui/fn/fn-item-type.stderr b/src/test/ui/fn/fn-item-type.stderr
deleted file mode 100644
index f03a47d5c..000000000
--- a/src/test/ui/fn/fn-item-type.stderr
+++ /dev/null
@@ -1,97 +0,0 @@
-error[E0308]: mismatched types
- --> $DIR/fn-item-type.rs:13:19
- |
-LL | eq(foo::<u8>, bar::<u8>);
- | -- ^^^^^^^^^ expected fn item, found a different fn item
- | |
- | arguments to this function are incorrect
- |
- = note: expected fn item `fn(_) -> _ {foo::<u8>}`
- found fn item `fn(_) -> _ {bar::<u8>}`
- = note: different `fn` items always have unique types, even if their signatures are the same
- = help: change the expected type to be function pointer `fn(isize) -> isize`
- = help: if the expected type is due to type inference, cast the expected `fn` to a function pointer: `foo::<u8> as fn(isize) -> isize`
-note: function defined here
- --> $DIR/fn-item-type.rs:7:4
- |
-LL | fn eq<T>(x: T, y: T) { }
- | ^^ ----
-
-error[E0308]: mismatched types
- --> $DIR/fn-item-type.rs:22:19
- |
-LL | eq(foo::<u8>, foo::<i8>);
- | -- ^^^^^^^^^ expected `u8`, found `i8`
- | |
- | arguments to this function are incorrect
- |
- = note: expected fn item `fn(_) -> _ {foo::<u8>}`
- found fn item `fn(_) -> _ {foo::<i8>}`
- = note: different `fn` items always have unique types, even if their signatures are the same
- = help: change the expected type to be function pointer `fn(isize) -> isize`
- = help: if the expected type is due to type inference, cast the expected `fn` to a function pointer: `foo::<u8> as fn(isize) -> isize`
-note: function defined here
- --> $DIR/fn-item-type.rs:7:4
- |
-LL | fn eq<T>(x: T, y: T) { }
- | ^^ ----
-
-error[E0308]: mismatched types
- --> $DIR/fn-item-type.rs:29:23
- |
-LL | eq(bar::<String>, bar::<Vec<u8>>);
- | -- ^^^^^^^^^^^^^^ expected struct `String`, found struct `Vec`
- | |
- | arguments to this function are incorrect
- |
- = note: expected fn item `fn(_) -> _ {bar::<String>}`
- found fn item `fn(_) -> _ {bar::<Vec<u8>>}`
- = note: different `fn` items always have unique types, even if their signatures are the same
- = help: change the expected type to be function pointer `fn(isize) -> isize`
- = help: if the expected type is due to type inference, cast the expected `fn` to a function pointer: `bar::<String> as fn(isize) -> isize`
-note: function defined here
- --> $DIR/fn-item-type.rs:7:4
- |
-LL | fn eq<T>(x: T, y: T) { }
- | ^^ ----
-
-error[E0308]: mismatched types
- --> $DIR/fn-item-type.rs:38:26
- |
-LL | eq(<u8 as Foo>::foo, <u16 as Foo>::foo);
- | -- ^^^^^^^^^^^^^^^^^ expected `u8`, found `u16`
- | |
- | arguments to this function are incorrect
- |
- = note: expected fn item `fn() {<u8 as Foo>::foo}`
- found fn item `fn() {<u16 as Foo>::foo}`
- = note: different `fn` items always have unique types, even if their signatures are the same
- = help: change the expected type to be function pointer `fn()`
- = help: if the expected type is due to type inference, cast the expected `fn` to a function pointer: `<u8 as Foo>::foo as fn()`
-note: function defined here
- --> $DIR/fn-item-type.rs:7:4
- |
-LL | fn eq<T>(x: T, y: T) { }
- | ^^ ----
-
-error[E0308]: mismatched types
- --> $DIR/fn-item-type.rs:45:19
- |
-LL | eq(foo::<u8>, bar::<u8> as fn(isize) -> isize);
- | -- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected fn item, found fn pointer
- | |
- | arguments to this function are incorrect
- |
- = note: expected fn item `fn(_) -> _ {foo::<u8>}`
- found fn pointer `fn(_) -> _`
- = help: change the expected type to be function pointer `fn(isize) -> isize`
- = help: if the expected type is due to type inference, cast the expected `fn` to a function pointer: `foo::<u8> as fn(isize) -> isize`
-note: function defined here
- --> $DIR/fn-item-type.rs:7:4
- |
-LL | fn eq<T>(x: T, y: T) { }
- | ^^ ----
-
-error: aborting due to 5 previous errors
-
-For more information about this error, try `rustc --explain E0308`.