mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-03 20:23:59 +00:00
25 lines
436 B
Rust
25 lines
436 B
Rust
// Regression test for part of issue #119924.
|
|
//@ check-pass
|
|
//@ compile-flags: -Znext-solver
|
|
|
|
#![allow(incomplete_features)]
|
|
#![feature(const_trait_impl, effects)]
|
|
|
|
#[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() {}
|