rust/tests/ui/feature-gates/feature-gate-inherent_assoc...

11 lines
225 B
Rust

// Test that inherent associated types cannot be used when inherent_associated_types
// feature gate is not used.
struct Foo;
impl Foo {
type Bar = isize; //~ERROR inherent associated types are unstable
}
fn main() {}