blob: 0b654b1a00476ab9f217b6dfddbb4cfa5e514f27 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
// This test ensures that we have the expected number of line generated.
#![crate_name = "foo"]
//@ has 'src/foo/source-line-numbers.rs.html'
//@ count - '//a[@data-nosnippet]' 35
//@ has - '//a[@id="35"]' '35'
#[
macro_export
]
macro_rules! bar {
($x:ident) => {{
$x += 2;
$x *= 2;
}}
}
/*
multi line
comment
*/
fn x(_: u8, _: u8) {}
fn foo() {
let mut y = 0;
bar!(y);
println!("
{y}
");
x(
1,
2,
);
}
|