normalize env constness for nested obligations

This commit is contained in:
Deadbeef 2021-12-25 00:33:23 +08:00
parent 59337cddd4
commit 77297e5f1c
No known key found for this signature in database
GPG key ID: 6D017A96D8E6C2F9
2 changed files with 47 additions and 0 deletions

View file

@ -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() {}