]> git.lizzy.rs Git - rust.git/blob - src/test/ui/in-band-lifetimes/mismatched_trait.rs
Do not suggest using a const parameter when there are bounds on an unused type parameter
[rust.git] / src / test / ui / in-band-lifetimes / mismatched_trait.rs
1 #![allow(warnings)]
2 #![feature(in_band_lifetimes)]
3
4 trait Get {
5     fn baz(&self, x: &'a u32, y: &u32) -> &'a u32 {
6         y //~ ERROR explicit lifetime required
7     }
8 }
9
10 fn main() {}