normalize env constness for nested obligations
This commit is contained in:
parent
59337cddd4
commit
77297e5f1c
2 changed files with 47 additions and 0 deletions
|
|
@ -0,0 +1,14 @@
|
|||
// Regression test for #92230.
|
||||
//
|
||||
// check-pass
|
||||
|
||||
#![feature(const_fn_trait_bound)]
|
||||
#![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() {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue