summaryrefslogtreecommitdiffstats
path: root/src/test/ui/lint/lint-non-snake-case-lifetimes.rs
blob: de76d2dbef26adabe93cd941ac8719a79b49d3dc (plain)
1
2
3
4
5
6
7
8
#![deny(non_snake_case)]
#![allow(dead_code)]

fn f<'FooBar>( //~ ERROR lifetime `'FooBar` should have a snake case name
    _: &'FooBar ()
) {}

fn main() { }