]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/forbid-group-group-1.rs
Merge commit '35d9c6bf256968e1b40e0d554607928bdf9cebea' into sync_cg_clif-2022-02-23
[rust.git] / src / test / 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 }