]> git.lizzy.rs Git - rust.git/blob - src/test/ui/in-band-lifetimes/E0687_where.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 / E0687_where.rs
1 #![allow(warnings)]
2 #![feature(in_band_lifetimes)]
3
4 fn bar<F>(x: &F) where F: Fn(&'a u32) {} //~ ERROR must be explicitly
5
6 fn baz(x: &impl Fn(&'a u32)) {} //~ ERROR must be explicitly
7
8 fn main() {}