mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
27 lines
527 B
Rust
27 lines
527 B
Rust
// check-pass
|
|
// compile-flags: -Z span-debug --error-format human
|
|
// aux-build:test-macros.rs
|
|
|
|
#![feature(stmt_expr_attributes)]
|
|
#![feature(custom_inner_attributes)]
|
|
#![feature(rustc_attrs)]
|
|
|
|
#![no_std] // Don't load unnecessary hygiene information from std
|
|
extern crate std;
|
|
|
|
#[macro_use]
|
|
extern crate test_macros;
|
|
|
|
trait MyTrait<T> {}
|
|
struct MyStruct<const N: bool>;
|
|
|
|
#[print_attr]
|
|
fn foo<T: MyTrait<MyStruct<{ true }>>>() {}
|
|
|
|
impl<T> MyTrait<T> for MyStruct<{true}> {
|
|
#![print_attr]
|
|
#![rustc_dummy]
|
|
}
|
|
|
|
fn main() {}
|