2024-02-16 20:02:50 +00:00
|
|
|
//@ check-pass
|
2024-10-30 18:03:44 +00:00
|
|
|
#![feature(const_trait_impl, rustc_attrs)]
|
2023-01-06 19:03:02 +00:00
|
|
|
|
|
|
|
#[const_trait]
|
|
|
|
trait IntoIter {
|
|
|
|
fn into_iter(self);
|
|
|
|
}
|
|
|
|
|
|
|
|
#[const_trait]
|
|
|
|
trait Hmm: Sized {
|
|
|
|
#[rustc_do_not_const_check]
|
|
|
|
fn chain<U>(self, other: U) where U: IntoIter,
|
|
|
|
{
|
|
|
|
other.into_iter()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|