rust/tests/ui/associated-inherent-types/assoc-inherent-no-body.rs

11 lines
174 B
Rust

#![feature(inherent_associated_types)]
#![allow(incomplete_features)]
struct Foo;
impl Foo {
type Baz; //~ ERROR associated type in `impl` without body
}
fn main() {}