summaryrefslogtreecommitdiffstats
path: root/tests/ui/wf/wf-static-type.rs
blob: f454fe30e775015f8e88ed4811f9c66e75a945ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// 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
//~| ERROR E0277


fn main() { }