2017-05-13 04:54:50 -05:00
|
|
|
warning[E0170]: pattern binding `Bar` is named the same as one of the variants of the type `Foo`
|
|
|
|
--> $DIR/issue-19100.rs:27:1
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | Bar if true
|
2017-05-13 04:54:50 -05:00
|
|
|
| ^^^
|
|
|
|
|
|
|
|
|
= help: if you meant to match on a variant, consider making the path in the pattern qualified: `Foo::Bar`
|
|
|
|
|
|
|
|
warning[E0170]: pattern binding `Baz` is named the same as one of the variants of the type `Foo`
|
2017-12-10 14:29:24 -06:00
|
|
|
--> $DIR/issue-19100.rs:31:1
|
2017-05-13 04:54:50 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | Baz if false
|
2017-05-13 04:54:50 -05:00
|
|
|
| ^^^
|
|
|
|
|
|
|
|
|
= help: if you meant to match on a variant, consider making the path in the pattern qualified: `Foo::Baz`
|
|
|
|
|