1 // Test that we can quantify lifetimes outside a constraint (i.e., including
2 // the self type) in a where clause. Specifically, test that implementing for a
3 // specific lifetime is not enough to satisfy the `for<'a> ...` constraint, which
4 // should require *all* lifetimes.
6 static X: &'static u32 = &42;
12 impl Bar for &'static u32 {
23 foo(&X); //~ ERROR implementation of `Bar` is not general enough