blob: bc9e1dee853e482c592da4e5c6741e26d54c3ebd (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// Regression test for https://github.com/rust-lang/rust/issues/56445#issuecomment-518402995.
// revisions: full min
#![cfg_attr(full, feature(const_generics))] //[full]~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<'_, ""> {}
|