fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0599]: no method named `get` found for enum `Result` in the current scope 2 --> $DIR/enum-method-probe.rs:24:9 3 | 4LL | res.get(); 5 | ^^^ method not found in `Result<Foo, ()>` 6 | 7note: the method `get` exists on the type `Foo` 8 --> $DIR/enum-method-probe.rs:9:5 9 | 10LL | fn get(&self) -> u8 { 11 | ^^^^^^^^^^^^^^^^^^^ 12help: use the `?` operator to extract the `Foo` value, propagating a `Result::Err` value to the caller 13 | 14LL | res?.get(); 15 | + 16 17error[E0599]: no method named `get` found for enum `Result` in the current scope 18 --> $DIR/enum-method-probe.rs:39:9 19 | 20LL | res.get(); 21 | ^^^ method not found in `Result<Foo, ()>` 22 | 23note: the method `get` exists on the type `Foo` 24 --> $DIR/enum-method-probe.rs:9:5 25 | 26LL | fn get(&self) -> u8 { 27 | ^^^^^^^^^^^^^^^^^^^ 28help: consider using `Result::expect` to unwrap the `Foo` value, panicking if the value is a `Result::Err` 29 | 30LL | res.expect("REASON").get(); 31 | +++++++++++++++++ 32 33error[E0599]: no method named `get` found for enum `Result` in the current scope 34 --> $DIR/enum-method-probe.rs:16:9 35 | 36LL | res.get(); 37 | ^^^ method not found in `Result<Foo, ()>` 38 | 39note: the method `get` exists on the type `Foo` 40 --> $DIR/enum-method-probe.rs:9:5 41 | 42LL | fn get(&self) -> u8 { 43 | ^^^^^^^^^^^^^^^^^^^ 44help: use the `?` operator to extract the `Foo` value, propagating a `Result::Err` value to the caller 45 | 46LL | res?.get(); 47 | + 48 49error[E0599]: no method named `get` found for enum `Result` in the current scope 50 --> $DIR/enum-method-probe.rs:32:9 51 | 52LL | res.get(); 53 | ^^^ method not found in `Result<Foo, ()>` 54 | 55note: the method `get` exists on the type `Foo` 56 --> $DIR/enum-method-probe.rs:9:5 57 | 58LL | fn get(&self) -> u8 { 59 | ^^^^^^^^^^^^^^^^^^^ 60help: consider using `Result::expect` to unwrap the `Foo` value, panicking if the value is a `Result::Err` 61 | 62LL | res.expect("REASON").get(); 63 | +++++++++++++++++ 64 65error[E0599]: no method named `get` found for enum `Option` in the current scope 66 --> $DIR/enum-method-probe.rs:46:9 67 | 68LL | res.get(); 69 | ^^^ method not found in `Option<Foo>` 70 | 71note: the method `get` exists on the type `Foo` 72 --> $DIR/enum-method-probe.rs:9:5 73 | 74LL | fn get(&self) -> u8 { 75 | ^^^^^^^^^^^^^^^^^^^ 76help: use the `?` operator to extract the `Foo` value, propagating an `Option::None` value to the caller 77 | 78LL | res?.get(); 79 | + 80 81error[E0599]: no method named `get` found for enum `Option` in the current scope 82 --> $DIR/enum-method-probe.rs:54:9 83 | 84LL | res.get(); 85 | ^^^ method not found in `Option<Foo>` 86 | 87note: the method `get` exists on the type `Foo` 88 --> $DIR/enum-method-probe.rs:9:5 89 | 90LL | fn get(&self) -> u8 { 91 | ^^^^^^^^^^^^^^^^^^^ 92help: consider using `Option::expect` to unwrap the `Foo` value, panicking if the value is an `Option::None` 93 | 94LL | res.expect("REASON").get(); 95 | +++++++++++++++++ 96 97error: aborting due to 6 previous errors 98 99For more information about this error, try `rustc --explain E0599`.