summaryrefslogtreecommitdiffstats
path: root/src/test/ui/impl-trait/in-trait/wf-bounds.rs
blob: 2c71583b3123685e2077f9bb583dc8546ea60c18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// issue #101663

#![feature(return_position_impl_trait_in_trait)]
#![allow(incomplete_features)]

trait Wf<T> {}

trait Uwu {
    fn nya() -> impl Wf<Vec<[u8]>>;
    //~^ ERROR the size for values of type `[u8]` cannot be known at compilation time

    fn nya2() -> impl Wf<[u8]>;
    //~^ ERROR the size for values of type `[u8]` cannot be known at compilation time
}

fn main() {}