summaryrefslogtreecommitdiffstats
path: root/tests/ui/rfc-2632-const-trait-impl/issue-92230-wf-super-trait-env.rs
blob: 4d34696539485dac7f346b76e37a7f9d04f781c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Regression test for #92230.
//
// check-pass

#![feature(const_trait_impl)]

#[const_trait]
pub trait Super {}
#[const_trait]
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() {}