From 218caa410aa38c29984be31a5229b9fa717560ee Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:19:13 +0200 Subject: Merging upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- src/test/ui/suggestions/enum-method-probe.stderr | 99 ------------------------ 1 file changed, 99 deletions(-) delete mode 100644 src/test/ui/suggestions/enum-method-probe.stderr (limited to 'src/test/ui/suggestions/enum-method-probe.stderr') diff --git a/src/test/ui/suggestions/enum-method-probe.stderr b/src/test/ui/suggestions/enum-method-probe.stderr deleted file mode 100644 index 6ed14984f..000000000 --- a/src/test/ui/suggestions/enum-method-probe.stderr +++ /dev/null @@ -1,99 +0,0 @@ -error[E0599]: no method named `get` found for enum `Result` in the current scope - --> $DIR/enum-method-probe.rs:24:9 - | -LL | res.get(); - | ^^^ method not found in `Result` - | -note: the method `get` exists on the type `Foo` - --> $DIR/enum-method-probe.rs:9:5 - | -LL | fn get(&self) -> u8 { - | ^^^^^^^^^^^^^^^^^^^ -help: use the `?` operator to extract the `Foo` value, propagating a `Result::Err` value to the caller - | -LL | res?.get(); - | + - -error[E0599]: no method named `get` found for enum `Result` in the current scope - --> $DIR/enum-method-probe.rs:39:9 - | -LL | res.get(); - | ^^^ method not found in `Result` - | -note: the method `get` exists on the type `Foo` - --> $DIR/enum-method-probe.rs:9:5 - | -LL | fn get(&self) -> u8 { - | ^^^^^^^^^^^^^^^^^^^ -help: consider using `Result::expect` to unwrap the `Foo` value, panicking if the value is a `Result::Err` - | -LL | res.expect("REASON").get(); - | +++++++++++++++++ - -error[E0599]: no method named `get` found for enum `Result` in the current scope - --> $DIR/enum-method-probe.rs:16:9 - | -LL | res.get(); - | ^^^ method not found in `Result` - | -note: the method `get` exists on the type `Foo` - --> $DIR/enum-method-probe.rs:9:5 - | -LL | fn get(&self) -> u8 { - | ^^^^^^^^^^^^^^^^^^^ -help: use the `?` operator to extract the `Foo` value, propagating a `Result::Err` value to the caller - | -LL | res?.get(); - | + - -error[E0599]: no method named `get` found for enum `Result` in the current scope - --> $DIR/enum-method-probe.rs:32:9 - | -LL | res.get(); - | ^^^ method not found in `Result` - | -note: the method `get` exists on the type `Foo` - --> $DIR/enum-method-probe.rs:9:5 - | -LL | fn get(&self) -> u8 { - | ^^^^^^^^^^^^^^^^^^^ -help: consider using `Result::expect` to unwrap the `Foo` value, panicking if the value is a `Result::Err` - | -LL | res.expect("REASON").get(); - | +++++++++++++++++ - -error[E0599]: no method named `get` found for enum `Option` in the current scope - --> $DIR/enum-method-probe.rs:46:9 - | -LL | res.get(); - | ^^^ method not found in `Option` - | -note: the method `get` exists on the type `Foo` - --> $DIR/enum-method-probe.rs:9:5 - | -LL | fn get(&self) -> u8 { - | ^^^^^^^^^^^^^^^^^^^ -help: use the `?` operator to extract the `Foo` value, propagating an `Option::None` value to the caller - | -LL | res?.get(); - | + - -error[E0599]: no method named `get` found for enum `Option` in the current scope - --> $DIR/enum-method-probe.rs:54:9 - | -LL | res.get(); - | ^^^ method not found in `Option` - | -note: the method `get` exists on the type `Foo` - --> $DIR/enum-method-probe.rs:9:5 - | -LL | fn get(&self) -> u8 { - | ^^^^^^^^^^^^^^^^^^^ -help: consider using `Option::expect` to unwrap the `Foo` value, panicking if the value is an `Option::None` - | -LL | res.expect("REASON").get(); - | +++++++++++++++++ - -error: aborting due to 6 previous errors - -For more information about this error, try `rustc --explain E0599`. -- cgit v1.2.3