]> git.lizzy.rs Git - rust.git/blob - tests/ui/associated-inherent-types/style.rs
Rollup merge of #106570 - Xaeroxe:div-duration-tests, r=JohnTitor
[rust.git] / tests / ui / associated-inherent-types / style.rs
1 #![feature(inherent_associated_types)]
2 #![allow(incomplete_features, dead_code)]
3 #![deny(non_camel_case_types)]
4
5 struct S;
6
7 impl S {
8     type typ = ();
9     //~^ ERROR associated type `typ` should have an upper camel case name
10 }
11
12 fn main() {}