blob: 97c27ce1a1cfa05cc1b783d150aa4583aa3238f0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// Regression test for #92230.
//
// check-pass
#![feature(const_trait_impl)]
pub trait Super {}
pub trait Sub: Super {}
impl<A> const Super for &A where A: ~const Super {}
impl<A> const Sub for &A where A: ~const Sub {}
fn main() {}
|