mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 18:53:39 +00:00
59 lines
723 B
Rust
59 lines
723 B
Rust
fn issue_2073() {
|
|
let x = {
|
|
#![my_attr]
|
|
do_something()
|
|
};
|
|
|
|
let x = #[my_attr]
|
|
{
|
|
do_something()
|
|
};
|
|
|
|
let x = #[my_attr]
|
|
{};
|
|
|
|
{
|
|
#![just_an_attribute]
|
|
};
|
|
|
|
let z = #[attr1]
|
|
#[attr2]
|
|
{
|
|
body()
|
|
};
|
|
|
|
x = |y| {
|
|
#![inner]
|
|
};
|
|
|
|
x = |y| #[outer]
|
|
{};
|
|
|
|
x = |y| {
|
|
//! ynot
|
|
};
|
|
|
|
x = |y| #[outer]
|
|
unsafe {};
|
|
|
|
let x = unsafe {
|
|
#![my_attr]
|
|
do_something()
|
|
};
|
|
|
|
let x = #[my_attr]
|
|
unsafe {
|
|
do_something()
|
|
};
|
|
|
|
// This is a dumb but possible case
|
|
let x = #[my_attr]
|
|
unsafe {};
|
|
|
|
x = |y| #[outer]
|
|
#[outer2]
|
|
unsafe {
|
|
//! Comment
|
|
};
|
|
}
|