]> git.lizzy.rs Git - rust.git/blob - src/test/ui/recursion/recursive-types-are-not-uninhabited.stderr
940ab94a6133233a3ec252989a177d81143506b2
[rust.git] / src / test / ui / recursion / recursive-types-are-not-uninhabited.stderr
1 error[E0005]: refutable pattern in local binding: `Err(_)` not covered
2   --> $DIR/recursive-types-are-not-uninhabited.rs:6:9
3    |
4 LL |     let Ok(x) = res;
5    |         ^^^^^ pattern `Err(_)` not covered
6
7 warning[E0381]: use of possibly uninitialized variable: `x`
8   --> $DIR/recursive-types-are-not-uninhabited.rs:8:5
9    |
10 LL |     x
11    |     ^ use of possibly uninitialized `x`
12    |
13    = warning: this error has been downgraded to a warning for backwards compatibility with previous releases
14    = warning: this represents potential undefined behavior in your code and this warning will become a hard error in the future
15
16 error: aborting due to previous error
17
18 Some errors have detailed explanations: E0005, E0381.
19 For more information about an error, try `rustc --explain E0005`.