summaryrefslogtreecommitdiffstats
path: root/tests/ui/object-safety/assoc_const_bounds_sized.rs
blob: 87d1f06f0363bdcb4b9ec86231850f39cfa6f752 (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() {}