2020-07-26 09:54:24 +00:00
|
|
|
// Regression test for https://github.com/rust-lang/rust/issues/56445#issuecomment-518402995.
|
2020-08-06 20:57:09 +00:00
|
|
|
//@ revisions: full min
|
2024-07-14 12:38:51 +00:00
|
|
|
#![cfg_attr(full, feature(adt_const_params, unsized_const_params))]
|
2021-08-27 16:04:57 +00:00
|
|
|
#![cfg_attr(full, allow(incomplete_features))]
|
2020-07-26 09:54:24 +00:00
|
|
|
#![crate_type = "lib"]
|
|
|
|
|
|
|
|
use std::marker::PhantomData;
|
|
|
|
|
|
|
|
struct Bug<'a, const S: &'a str>(PhantomData<&'a ()>);
|
2023-05-05 20:42:51 +00:00
|
|
|
//~^ ERROR: the type of const parameters must not depend on other generic parameters
|
2020-07-26 09:54:24 +00:00
|
|
|
|
|
|
|
impl Bug<'_, ""> {}
|