summaryrefslogtreecommitdiffstats
path: root/src/test/ui/associated-types/defaults-wf.rs
blob: 99b512503346598df58a334ccf7128a3926460bc (plain)
1
2
3
4
5
6
7
8
9
10
11
// Check that associated type defaults are wf checked.

#![feature(associated_type_defaults)]

// Default types must always be wf
trait Tr3 {
    type Ty = Vec<[u8]>;
    //~^ ERROR the size for values of type `[u8]` cannot be known at compilation time
}

fn main() {}