2020-10-03 17:00:18 +01:00
|
|
|
// revisions: full min
|
|
|
|
|
|
|
|
|
|
#![cfg_attr(full, allow(incomplete_features))]
|
|
|
|
|
#![cfg_attr(full, feature(const_generics))]
|
2020-10-02 02:21:15 +01:00
|
|
|
|
|
|
|
|
struct Bug<T> {
|
|
|
|
|
//~^ ERROR parameter `T` is never used
|
|
|
|
|
inner: [(); { [|_: &T| {}; 0].len() }],
|
2020-10-12 22:27:59 +01:00
|
|
|
//[min]~^ ERROR generic parameters may not be used in const operations
|
2020-10-03 17:00:18 +01:00
|
|
|
//[full]~^^ WARN cannot use constants which depend on generic parameters in types
|
|
|
|
|
//[full]~^^^ WARN this was previously accepted by the compiler
|
2020-10-02 02:21:15 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn main() {}
|