mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 18:23:49 +00:00
35 lines
903 B
Rust
35 lines
903 B
Rust
//@ normalize-stderr-test: "DefId\(.+?\)" -> "DefId(..)"
|
|
#![feature(rustc_attrs)]
|
|
|
|
fn bar() {
|
|
fn foo() {
|
|
fn baz() {
|
|
#[rustc_dump_def_parents]
|
|
|| {
|
|
//~^ ERROR: rustc_dump_def_parents: DefId
|
|
qux::<
|
|
{
|
|
//~^ ERROR: rustc_dump_def_parents: DefId
|
|
fn inhibits_dump() {
|
|
qux::<
|
|
{
|
|
"hi";
|
|
1
|
|
},
|
|
>();
|
|
}
|
|
|
|
qux::<{ 1 + 1 }>();
|
|
//~^ ERROR: rustc_dump_def_parents: DefId
|
|
1
|
|
},
|
|
>();
|
|
};
|
|
}
|
|
}
|
|
}
|
|
|
|
const fn qux<const N: usize>() {}
|
|
|
|
fn main() {}
|