mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 18:23:49 +00:00
14 lines
209 B
Rust
14 lines
209 B
Rust
//@ known-bug: #121411
|
|
#![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(&());
|