about summary refs log tree commit diff
path: root/tests/ui/impl-trait/static-lifetime-return-position-impl-trait.rs
blob: 9205f1e1632c836ebe63c4c87f76b3fefc09cff4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//@ check-pass

#![allow(incomplete_features)]
#![feature(adt_const_params, unsized_const_params)]

pub struct Element;

pub trait Node {
    fn elements<const T: &'static str>(&self) -> impl Iterator<Item = Element>;
}

fn main() {}