rust/tests/ui/impl-trait/static-lifetime-return-position-impl-trait.rs
Takayuki Maeda 83722c62b0 accept ReStatic for RPITIT
add an ui test for #112094
2023-06-26 01:11:44 +09:00

13 lines
248 B
Rust

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