]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/feature-gate-inherent_associated_types.rs
Rollup merge of #94068 - eholk:drop-track-field-assign, r=tmandry
[rust.git] / src / test / ui / feature-gates / feature-gate-inherent_associated_types.rs
1 // Test that inherent associated types cannot be used when inherent_associated_types
2 // feature gate is not used.
3
4 struct Foo;
5
6 impl Foo {
7     type Bar = isize; //~ERROR inherent associated types are unstable
8 }
9
10 fn main() {}