summaryrefslogtreecommitdiffstats
path: root/tests/ui/late-bound-lifetimes/issue-80618.rs
blob: 6aa8ff461a9a92434cb9272087cc3cdced91adf3 (plain)
1
2
3
4
5
6
7
8
fn foo<'a>(x: &'a str) -> &'a str {
    x
}

fn main() {
    let _ = foo::<'static>;
//~^ ERROR cannot specify lifetime arguments explicitly if late bound lifetime parameters are present [E0794]
}