]> git.proxmox.com Git - rustc.git/blame - src/test/rustdoc-ui/display-output.stdout
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / rustdoc-ui / display-output.stdout
CommitLineData
c295e0f8
XL
1
2running 1 test
3c0e092e 3test $DIR/display-output.rs - foo (line 9) ... ok
c295e0f8
XL
4
5successes:
6
3c0e092e 7---- $DIR/display-output.rs - foo (line 9) stdout ----
c295e0f8 8warning: unused variable: `x`
3c0e092e 9 --> $DIR/display-output.rs:11:5
c295e0f8
XL
10 |
11LL | let x = 12;
12 | ^ help: if this is intentional, prefix it with an underscore: `_x`
13 |
3c0e092e
XL
14note: the lint level is defined here
15 --> $DIR/display-output.rs:9:9
16 |
17LL | #![warn(unused)]
18 | ^^^^^^
19 = note: `#[warn(unused_variables)]` implied by `#[warn(unused)]`
20
21warning: unused variable: `x`
22 --> $DIR/display-output.rs:13:8
23 |
a2a8927a 24LL | fn foo(x: &dyn std::fmt::Display) {}
3c0e092e
XL
25 | ^ help: if this is intentional, prefix it with an underscore: `_x`
26
923072b8 27warning: function `foo` is never used
3c0e092e
XL
28 --> $DIR/display-output.rs:13:4
29 |
a2a8927a 30LL | fn foo(x: &dyn std::fmt::Display) {}
3c0e092e
XL
31 | ^^^
32 |
3c0e092e 33 = note: `#[warn(dead_code)]` implied by `#[warn(unused)]`
c295e0f8 34
a2a8927a 35warning: 3 warnings emitted
c295e0f8
XL
36
37
38
39successes:
3c0e092e 40 $DIR/display-output.rs - foo (line 9)
c295e0f8
XL
41
42test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME
43