diff options
| author | Esteban Kuber <esteban@kuber.com.ar> | 2021-11-17 19:37:46 +0000 |
|---|---|---|
| committer | Esteban Kuber <esteban@kuber.com.ar> | 2022-04-30 02:27:25 +0000 |
| commit | 09f3ea16928d7a61ef8805bc2ad69a3bd2f7db18 (patch) | |
| tree | 92d0f42c519575ffe8133266bc378750ff0e4ad5 /src/test/ui/span | |
| parent | 05c07386b45fbc540ec8cdc1bc41ae9c062b453b (diff) | |
| download | rust-09f3ea16928d7a61ef8805bc2ad69a3bd2f7db18.tar.gz rust-09f3ea16928d7a61ef8805bc2ad69a3bd2f7db18.zip | |
When encountering a binding that could be a const or unit variant, suggest the right path
Diffstat (limited to 'src/test/ui/span')
| -rw-r--r-- | src/test/ui/span/issue-39698.stderr | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/test/ui/span/issue-39698.stderr b/src/test/ui/span/issue-39698.stderr index 445df90d395..25c35fd5479 100644 --- a/src/test/ui/span/issue-39698.stderr +++ b/src/test/ui/span/issue-39698.stderr @@ -1,3 +1,13 @@ +error[E0408]: variable `d` is not bound in all patterns + --> $DIR/issue-39698.rs:10:37 + | +LL | T::T1(a, d) | T::T2(d, b) | T::T3(c) | T::T4(a) => { println!("{:?}", a); } + | - - ^^^^^^^^ ^^^^^^^^ pattern doesn't bind `d` + | | | | + | | | pattern doesn't bind `d` + | | variable not in all patterns + | variable not in all patterns + error[E0408]: variable `a` is not bound in all patterns --> $DIR/issue-39698.rs:10:23 | @@ -28,16 +38,6 @@ LL | T::T1(a, d) | T::T2(d, b) | T::T3(c) | T::T4(a) => { println!("{:?} | | pattern doesn't bind `c` | pattern doesn't bind `c` -error[E0408]: variable `d` is not bound in all patterns - --> $DIR/issue-39698.rs:10:37 - | -LL | T::T1(a, d) | T::T2(d, b) | T::T3(c) | T::T4(a) => { println!("{:?}", a); } - | - - ^^^^^^^^ ^^^^^^^^ pattern doesn't bind `d` - | | | | - | | | pattern doesn't bind `d` - | | variable not in all patterns - | variable not in all patterns - error: aborting due to 4 previous errors For more information about this error, try `rustc --explain E0408`. |
