]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/forbid-group-group-1.rs
Rollup merge of #106470 - ehuss:tidy-no-wasm, r=Mark-Simulacrum
[rust.git] / tests / ui / lint / forbid-group-group-1.rs
1 // Check what happens when we forbid a smaller group but
2 // then allow a superset of that group.
3
4 #![forbid(nonstandard_style)]
5
6 // FIXME: Arguably this should be an error, but the WARNINGS group is
7 // treated in a very special (and rather ad-hoc) way and
8 // it fails to trigger.
9 #[allow(warnings)]
10 fn main() {
11     let A: ();
12     //~^ ERROR should have a snake case name
13 }