1 error[E0599]: no method named `get` found for enum `Result` in the current scope
2 --> $DIR/enum-method-probe.rs:24:9
5 | ^^^ method not found in `Result<Foo, ()>`
7 note: the method `get` exists on the type `Foo`
8 --> $DIR/enum-method-probe.rs:9:5
10 LL | fn get(&self) -> u8 {
12 help: use the `?` operator to extract the `Foo` value, propagating a `Result::Err` value to the caller
17 error[E0599]: no method named `get` found for enum `Result` in the current scope
18 --> $DIR/enum-method-probe.rs:39:9
21 | ^^^ method not found in `Result<Foo, ()>`
23 note: the method `get` exists on the type `Foo`
24 --> $DIR/enum-method-probe.rs:9:5
26 LL | fn get(&self) -> u8 {
28 help: consider using `Result::expect` to unwrap the `Foo` value, panicking if the value is a `Result::Err`
30 LL | res.expect("REASON").get();
33 error[E0599]: no method named `get` found for enum `Result` in the current scope
34 --> $DIR/enum-method-probe.rs:16:9
37 | ^^^ method not found in `Result<Foo, ()>`
39 note: the method `get` exists on the type `Foo`
40 --> $DIR/enum-method-probe.rs:9:5
42 LL | fn get(&self) -> u8 {
44 help: use the `?` operator to extract the `Foo` value, propagating a `Result::Err` value to the caller
49 error[E0599]: no method named `get` found for enum `Result` in the current scope
50 --> $DIR/enum-method-probe.rs:32:9
53 | ^^^ method not found in `Result<Foo, ()>`
55 note: the method `get` exists on the type `Foo`
56 --> $DIR/enum-method-probe.rs:9:5
58 LL | fn get(&self) -> u8 {
60 help: consider using `Result::expect` to unwrap the `Foo` value, panicking if the value is a `Result::Err`
62 LL | res.expect("REASON").get();
65 error[E0599]: no method named `get` found for enum `Option` in the current scope
66 --> $DIR/enum-method-probe.rs:46:9
69 | ^^^ method not found in `Option<Foo>`
71 note: the method `get` exists on the type `Foo`
72 --> $DIR/enum-method-probe.rs:9:5
74 LL | fn get(&self) -> u8 {
76 help: use the `?` operator to extract the `Foo` value, propagating an `Option::None` value to the caller
81 error[E0599]: no method named `get` found for enum `Option` in the current scope
82 --> $DIR/enum-method-probe.rs:54:9
85 | ^^^ method not found in `Option<Foo>`
87 note: the method `get` exists on the type `Foo`
88 --> $DIR/enum-method-probe.rs:9:5
90 LL | fn get(&self) -> u8 {
92 help: consider using `Option::expect` to unwrap the `Foo` value, panicking if the value is an `Option::None`
94 LL | res.expect("REASON").get();
97 error: aborting due to 6 previous errors
99 For more information about this error, try `rustc --explain E0599`.