From 698f8c2f01ea549d77d7dc3338a12e04c11057b9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:02:58 +0200 Subject: Adding upstream version 1.64.0+dfsg1. Signed-off-by: Daniel Baumann --- src/test/ui/error-codes/E0283.stderr | 37 ++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 src/test/ui/error-codes/E0283.stderr (limited to 'src/test/ui/error-codes/E0283.stderr') diff --git a/src/test/ui/error-codes/E0283.stderr b/src/test/ui/error-codes/E0283.stderr new file mode 100644 index 000000000..90a28874e --- /dev/null +++ b/src/test/ui/error-codes/E0283.stderr @@ -0,0 +1,37 @@ +error[E0790]: cannot call associated function on trait without specifying the corresponding `impl` type + --> $DIR/E0283.rs:30:21 + | +LL | fn create() -> u32; + | ------------------- `Generator::create` defined here +... +LL | let cont: u32 = Generator::create(); + | ^^^^^^^^^^^^^^^^^ cannot call associated function of trait + | +help: use a fully-qualified path to a specific available implementation (2 found) + | +LL | let cont: u32 = <::Impl as Generator>::create(); + | ++++++++++ + + +error[E0283]: type annotations needed + --> $DIR/E0283.rs:35:24 + | +LL | let bar = foo_impl.into() * 1u32; + | ^^^^ + | +note: multiple `impl`s satisfying `Impl: Into<_>` found + --> $DIR/E0283.rs:17:1 + | +LL | impl Into for Impl { + | ^^^^^^^^^^^^^^^^^^^^^^^ + = note: and another `impl` found in the `core` crate: + - impl Into for T + where U: From; +help: try using a fully qualified path to specify the expected types + | +LL | let bar = >::into(foo_impl) * 1u32; + | ++++++++++++++++++++++++ ~ + +error: aborting due to 2 previous errors + +Some errors have detailed explanations: E0283, E0790. +For more information about an error, try `rustc --explain E0283`. -- cgit v1.2.3