rust/tests/ui/traits/const-traits/issue-92230-wf-super-trait-env.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
302 B
Rust
Raw Normal View History

// Regression test for #92230.
//
//@ check-pass
2024-06-14 12:16:15 +00:00
//@ compile-flags: -Znext-solver
2024-10-30 18:03:44 +00:00
#![feature(const_trait_impl)]
2022-08-28 06:27:31 +00:00
#[const_trait]
pub trait Super {}
2022-08-28 06:27:31 +00:00
#[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() {}