]> git.lizzy.rs Git - rust.git/blob - src/test/ui/impl-trait/in-trait/wf-bounds.rs
Rollup merge of #105405 - sunfishcode:sunfishcode/export-dynamic, r=TaKO8Ki
[rust.git] / src / test / ui / impl-trait / in-trait / wf-bounds.rs
1 // issue #101663
2
3 #![feature(return_position_impl_trait_in_trait)]
4 #![allow(incomplete_features)]
5
6 trait Wf<T> {}
7
8 trait Uwu {
9     fn nya() -> impl Wf<Vec<[u8]>>;
10     //~^ ERROR the size for values of type `[u8]` cannot be known at compilation time
11
12     fn nya2() -> impl Wf<[u8]>;
13     //~^ ERROR the size for values of type `[u8]` cannot be known at compilation time
14 }
15
16 fn main() {}