mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-26 13:01:27 +03:00
470e4623db
correctly parse `const unsafe trait` implementations.
11 lines
212 B
Rust
11 lines
212 B
Rust
// Reported in <https://github.com/rust-lang/rust/pull/148434#issuecomment-3621280430>.
|
|
//@ check-pass
|
|
|
|
#![feature(const_trait_impl)]
|
|
|
|
const unsafe impl Trait for () {}
|
|
|
|
const unsafe trait Trait {}
|
|
|
|
fn main() {}
|