]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc-ui/display-output.stdout
Rollup merge of #103702 - WaffleLapkin:lift-sized-bounds-from-pointer-methods-where...
[rust.git] / tests / rustdoc-ui / display-output.stdout
1
2 running 1 test
3 test $DIR/display-output.rs - foo (line 9) ... ok
4
5 successes:
6
7 ---- $DIR/display-output.rs - foo (line 9) stdout ----
8 warning: unused variable: `x`
9   --> $DIR/display-output.rs:11:5
10    |
11 LL | let x = 12;
12    |     ^ help: if this is intentional, prefix it with an underscore: `_x`
13    |
14 note: the lint level is defined here
15   --> $DIR/display-output.rs:9:9
16    |
17 LL | #![warn(unused)]
18    |         ^^^^^^
19    = note: `#[warn(unused_variables)]` implied by `#[warn(unused)]`
20
21 warning: unused variable: `x`
22   --> $DIR/display-output.rs:13:8
23    |
24 LL | fn foo(x: &dyn std::fmt::Display) {}
25    |        ^ help: if this is intentional, prefix it with an underscore: `_x`
26
27 warning: function `foo` is never used
28   --> $DIR/display-output.rs:13:4
29    |
30 LL | fn foo(x: &dyn std::fmt::Display) {}
31    |    ^^^
32    |
33    = note: `#[warn(dead_code)]` implied by `#[warn(unused)]`
34
35 warning: 3 warnings emitted
36
37
38
39 successes:
40     $DIR/display-output.rs - foo (line 9)
41
42 test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME
43