summaryrefslogtreecommitdiffstats
path: root/src/test/ui/traits/issue-35869.stderr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:13 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:13 +0000
commit218caa410aa38c29984be31a5229b9fa717560ee (patch)
treec54bd55eeb6e4c508940a30e94c0032fbd45d677 /src/test/ui/traits/issue-35869.stderr
parentReleasing progress-linux version 1.67.1+dfsg1-1~progress7.99u1. (diff)
downloadrustc-218caa410aa38c29984be31a5229b9fa717560ee.tar.xz
rustc-218caa410aa38c29984be31a5229b9fa717560ee.zip
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/ui/traits/issue-35869.stderr')
-rw-r--r--src/test/ui/traits/issue-35869.stderr71
1 files changed, 0 insertions, 71 deletions
diff --git a/src/test/ui/traits/issue-35869.stderr b/src/test/ui/traits/issue-35869.stderr
deleted file mode 100644
index 0780109b8..000000000
--- a/src/test/ui/traits/issue-35869.stderr
+++ /dev/null
@@ -1,71 +0,0 @@
-error[E0053]: method `foo` has an incompatible type for trait
- --> $DIR/issue-35869.rs:11:15
- |
-LL | fn foo(_: fn(u16) -> ()) {}
- | ^^^^^^^^^^^^^
- | |
- | expected `u8`, found `u16`
- | help: change the parameter type to match the trait: `fn(u8)`
- |
-note: type in trait
- --> $DIR/issue-35869.rs:2:15
- |
-LL | fn foo(_: fn(u8) -> ());
- | ^^^^^^^^^^^^
- = note: expected fn pointer `fn(fn(u8))`
- found fn pointer `fn(fn(u16))`
-
-error[E0053]: method `bar` has an incompatible type for trait
- --> $DIR/issue-35869.rs:13:15
- |
-LL | fn bar(_: Option<u16>) {}
- | ^^^^^^^^^^^
- | |
- | expected `u8`, found `u16`
- | help: change the parameter type to match the trait: `Option<u8>`
- |
-note: type in trait
- --> $DIR/issue-35869.rs:3:15
- |
-LL | fn bar(_: Option<u8>);
- | ^^^^^^^^^^
- = note: expected fn pointer `fn(Option<u8>)`
- found fn pointer `fn(Option<u16>)`
-
-error[E0053]: method `baz` has an incompatible type for trait
- --> $DIR/issue-35869.rs:15:15
- |
-LL | fn baz(_: (u16, u16)) {}
- | ^^^^^^^^^^
- | |
- | expected `u8`, found `u16`
- | help: change the parameter type to match the trait: `(u8, u16)`
- |
-note: type in trait
- --> $DIR/issue-35869.rs:4:15
- |
-LL | fn baz(_: (u8, u16));
- | ^^^^^^^^^
- = note: expected fn pointer `fn((u8, _))`
- found fn pointer `fn((u16, _))`
-
-error[E0053]: method `qux` has an incompatible type for trait
- --> $DIR/issue-35869.rs:17:17
- |
-LL | fn qux() -> u16 { 5u16 }
- | ^^^
- | |
- | expected `u8`, found `u16`
- | help: change the output type to match the trait: `u8`
- |
-note: type in trait
- --> $DIR/issue-35869.rs:5:17
- |
-LL | fn qux() -> u8;
- | ^^
- = note: expected fn pointer `fn() -> u8`
- found fn pointer `fn() -> u16`
-
-error: aborting due to 4 previous errors
-
-For more information about this error, try `rustc --explain E0053`.