2024-03-05 00:02:35 +01:00
|
|
|
// Regression test for part of issue #119924.
|
|
|
|
//@ check-pass
|
|
|
|
|
2024-06-21 12:22:29 +00:00
|
|
|
#![feature(const_trait_impl, effects)] //~ WARN the feature `effects` is incomplete
|
2024-03-05 00:02:35 +01:00
|
|
|
|
|
|
|
#[const_trait]
|
|
|
|
trait Trait {
|
|
|
|
fn required();
|
|
|
|
}
|
|
|
|
|
|
|
|
impl const Trait for () {
|
|
|
|
fn required() {
|
|
|
|
pub struct Type;
|
|
|
|
|
|
|
|
impl Type {
|
|
|
|
// This visibility qualifier used to get rejected.
|
|
|
|
pub fn perform() {}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|