about summary refs log tree commit diff
path: root/tests/ui/dyn-compatibility/assoc_const_bounds_sized.rs
blob: 1272a735e83de96b69e5498722959333f458974c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#![feature(generic_const_items)]
#![allow(incomplete_features, dead_code)]

//@ check-pass

trait Foo {
    const BAR: bool
    where
        Self: Sized;
}

fn foo(_: &dyn Foo) {}

fn main() {}