// Regression test for https://github.com/rust-lang/rust/issues/56445#issuecomment-518402995. #![feature(const_generics)] //~^ WARN: the feature `const_generics` is incomplete #![crate_type = "lib"] use std::marker::PhantomData; struct Bug<'a, const S: &'a str>(PhantomData<&'a ()>); //~^ ERROR: use of non-static lifetime `'a` in const generic impl Bug<'_, ""> {}