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