diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2024-11-06 21:28:26 +0000 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2024-11-17 23:40:00 +0000 |
| commit | 6dc79f6133d24100cecbcb24e256b9f149d2b47a (patch) | |
| tree | 048ff29e80fe93d338fa602a8c2119010d5b787c /tests/ui/consts/const-pattern-irrefutable.rs | |
| parent | c25b44bee96e4489dab8f44409ba347bfeb328b9 (diff) | |
| download | rust-6dc79f6133d24100cecbcb24e256b9f149d2b47a.tar.gz rust-6dc79f6133d24100cecbcb24e256b9f149d2b47a.zip | |
Use `item_name` instead of a span snippet when talking about const pattern
Diffstat (limited to 'tests/ui/consts/const-pattern-irrefutable.rs')
| -rw-r--r-- | tests/ui/consts/const-pattern-irrefutable.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/consts/const-pattern-irrefutable.rs b/tests/ui/consts/const-pattern-irrefutable.rs index 54d2ad32386..c590ec8fcd3 100644 --- a/tests/ui/consts/const-pattern-irrefutable.rs +++ b/tests/ui/consts/const-pattern-irrefutable.rs @@ -1,6 +1,6 @@ mod foo { pub const b: u8 = 2; - //~^ missing patterns are not covered because `c` is interpreted as a constant pattern, not a new variable + //~^ missing patterns are not covered because `b` is interpreted as a constant pattern, not a new variable pub const d: u8 = 2; //~^ missing patterns are not covered because `d` is interpreted as a constant pattern, not a new variable } |
