fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.0 KiB43 linesraw
1
2running 1 test
3test $DIR/display-output.rs - foo (line 9) ... ok
4
5successes:
6
7---- $DIR/display-output.rs - foo (line 9) stdout ----
8warning: unused variable: `x`
9  --> $DIR/display-output.rs:11:5
10   |
11LL | let x = 12;
12   |     ^ help: if this is intentional, prefix it with an underscore: `_x`
13   |
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   |
24LL | fn foo(x: &dyn std::fmt::Display) {}
25   |        ^ help: if this is intentional, prefix it with an underscore: `_x`
26
27warning: function `foo` is never used
28  --> $DIR/display-output.rs:13:4
29   |
30LL | fn foo(x: &dyn std::fmt::Display) {}
31   |    ^^^
32   |
33   = note: `#[warn(dead_code)]` implied by `#[warn(unused)]`
34
35warning: 3 warnings emitted
36
37
38
39successes:
40    $DIR/display-output.rs - foo (line 9)
41
42test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME
43