rust/tests/ui/impl-trait/static-lifetime-return-position-impl-trait.rs
2023-10-13 21:01:36 +00:00

13 lines
211 B
Rust

// check-pass
#![allow(incomplete_features)]
#![feature(adt_const_params)]
pub struct Element;
pub trait Node {
fn elements<const T: &'static str>(&self) -> impl Iterator<Item = Element>;
}
fn main() {}