// Test that we check the types of statics are well-formed. #![feature(associated_type_defaults)] #![allow(dead_code)] struct IsCopy { t: T } struct NotCopy; static FOO: IsCopy> = IsCopy { t: None }; //~^ ERROR E0277 fn main() { }