rust/tests/crashes/121411.rs

14 lines
209 B
Rust
Raw Normal View History

//@ known-bug: #121411
2024-10-30 13:03:44 -05:00
#![feature(const_trait_impl)]
#[const_trait]
trait Foo {
fn into_iter(&self) {}
}
impl const Foo for () {
fn into_iter(a: u32, b: u32) {}
}
const _: () = Foo::into_iter(&());