1 // Regression test for https://github.com/rust-lang/rust/issues/56445#issuecomment-518402995.
3 #![feature(const_generics)]
4 //~^ WARN: the feature `const_generics` is incomplete
7 use std::marker::PhantomData;
9 struct Bug<'a, const S: &'a str>(PhantomData<&'a ()>);
10 //~^ ERROR: use of non-static lifetime `'a` in const generic