fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0277]: `?` couldn't convert the error to `()` 2 --> $DIR/issue-32709.rs:4:11 3 | 4LL | fn a() -> Result<i32, ()> { 5 | --------------- expected `()` because of this 6LL | Err(5)?; 7 | ^ the trait `From<{integer}>` is not implemented for `()` 8 | 9 = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait 10 = help: the following other types implement trait `From<T>`: 11 <(T,) as From<[T; 1]>> 12 <(T, T) as From<[T; 2]>> 13 <(T, T, T) as From<[T; 3]>> 14 <(T, T, T, T) as From<[T; 4]>> 15 <(T, T, T, T, T) as From<[T; 5]>> 16 <(T, T, T, T, T, T) as From<[T; 6]>> 17 <(T, T, T, T, T, T, T) as From<[T; 7]>> 18 <(T, T, T, T, T, T, T, T) as From<[T; 8]>> 19 and 4 others 20 = note: required for `Result<i32, ()>` to implement `FromResidual<Result<Infallible, {integer}>>` 21 22error: aborting due to previous error 23 24For more information about this error, try `rustc --explain E0277`.