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