]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-types/defaults-wf.rs
Merge commit 'd556c56f792756dd7cfec742b9f2e07612dc10f4' into sync_cg_clif-2021-02-01
[rust.git] / src / test / ui / associated-types / defaults-wf.rs
1 // Check that associated type defaults are wf checked.
2
3 #![feature(associated_type_defaults)]
4
5 // Default types must always be wf
6 trait Tr3 {
7     type Ty = Vec<[u8]>;
8     //~^ ERROR the size for values of type `[u8]` cannot be known at compilation time
9 }
10
11 fn main() {}