Throwing in another interesting test case: There is no need to warn
about constants that are (non-trivial) paths rather than just identifiers, regardless of what case their characters are.
This commit is contained in:
parent
a076fef2b6
commit
924674202e
1 changed files with 9 additions and 0 deletions
|
@ -41,7 +41,16 @@ fn g() {
|
|||
assert!(r == 1);
|
||||
}
|
||||
|
||||
fn h() {
|
||||
let r = match (0,0) {
|
||||
(0, m::aha) => 0,
|
||||
(x, y) => 1 + x + y,
|
||||
};
|
||||
assert!(r == 1);
|
||||
}
|
||||
|
||||
fn main () {
|
||||
f();
|
||||
g();
|
||||
h();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue