granite-rust/tests/ui/traits/const-traits/issue-92230-wf-super-trait-env.rs
Michael Goulet e91267f3f0 Move tests
2024-10-22 00:03:09 +00:00

17 lines
342 B
Rust

// Regression test for #92230.
//
//@ check-pass
//@ compile-flags: -Znext-solver
#![feature(const_trait_impl, effects)]
#![allow(incomplete_features)]
#[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() {}