blob: 8e738544a718fb32ea8395d3c5181d015aa7f4a9 [file] [log] [blame] [edit]
// This test check that no matter the nesting of const-anons we consider
// them as transparent.
//
// https://github.com/rust-lang/rust/issues/131474
//@ check-pass
pub struct Test;
const _: () = {
const _: () = {
impl Test {}
};
};
const _: () = {
const _: () = {
struct InnerTest;
impl InnerTest {}
};
};
// https://github.com/rust-lang/rust/issues/131643
const _: () = {
const _: () = {
impl InnerTest {}
};
struct InnerTest;
};
fn main() {}