mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-22 03:44:24 +00:00
tests: attributed comment-only blocks
This commit is contained in:
parent
faf97a67d6
commit
eed826f8a7
27
tests/source/issue_4475.rs
Normal file
27
tests/source/issue_4475.rs
Normal file
@ -0,0 +1,27 @@
|
||||
fn main() {
|
||||
#[cfg(debug_assertions)]
|
||||
{ println!("DEBUG"); }
|
||||
}
|
||||
|
||||
fn main() {
|
||||
#[cfg(feature = "foo")]
|
||||
{
|
||||
/*
|
||||
let foo = 0
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
||||
fn main() {
|
||||
#[cfg(feature = "foo")]
|
||||
{ /* let foo = 0; */ }
|
||||
}
|
||||
|
||||
fn main() {
|
||||
#[foo]
|
||||
#[bar]
|
||||
#[baz]
|
||||
{
|
||||
// let foo = 0;
|
||||
}
|
||||
}
|
6
tests/target/issue_4467.rs
Normal file
6
tests/target/issue_4467.rs
Normal file
@ -0,0 +1,6 @@
|
||||
pub fn main() {
|
||||
#[cfg(feature = "std")]
|
||||
{
|
||||
// Comment
|
||||
}
|
||||
}
|
29
tests/target/issue_4475.rs
Normal file
29
tests/target/issue_4475.rs
Normal file
@ -0,0 +1,29 @@
|
||||
fn main() {
|
||||
#[cfg(debug_assertions)]
|
||||
{
|
||||
println!("DEBUG");
|
||||
}
|
||||
}
|
||||
|
||||
fn main() {
|
||||
#[cfg(feature = "foo")]
|
||||
{
|
||||
/*
|
||||
let foo = 0
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
||||
fn main() {
|
||||
#[cfg(feature = "foo")]
|
||||
{ /* let foo = 0; */ }
|
||||
}
|
||||
|
||||
fn main() {
|
||||
#[foo]
|
||||
#[bar]
|
||||
#[baz]
|
||||
{
|
||||
// let foo = 0;
|
||||
}
|
||||
}
|
6
tests/target/issue_4522.rs
Normal file
6
tests/target/issue_4522.rs
Normal file
@ -0,0 +1,6 @@
|
||||
fn main() {
|
||||
#[cfg(feature = "foo")]
|
||||
{
|
||||
// let foo = 0;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user