summary refs log tree commit diff
path: root/src/test/ui/const-generics/issues/issue-56445.rs
blob: 0bcde348b05d5d1ef52d007fe1941481162ae5a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// 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
#![cfg_attr(min, feature(min_const_generics))]
#![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<'_, ""> {}