mirror of https://github.com/rust-lang/rust
14 lines
384 B
Rust
14 lines
384 B
Rust
//@ incremental
|
|
|
|
struct Wrapper<T>(T);
|
|
|
|
struct Local<T, U>(T, U);
|
|
|
|
impl<T> Local { //~ ERROR missing generics for struct `Local`
|
|
type AssocType3 = T; //~ ERROR inherent associated types are unstable
|
|
|
|
const WRAPPED_ASSOC_3: Wrapper<Self::AssocType3> = Wrapper();
|
|
//~^ ERROR: this struct takes 1 argument but 0 arguments were supplied
|
|
}
|
|
//~^ ERROR `main` function not found
|