]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/print.stderr
Auto merge of #3603 - xfix:random-state-lint, r=phansch
[rust.git] / tests / ui / print.stderr
index 5afb8ae504d4569af576ac26c224330c4d34afc6..9635011b906b9e24f7b088d4a38c2b1b9894d11f 100644 (file)
@@ -1,62 +1,60 @@
 error: use of `Debug`-based formatting
-  --> $DIR/print.rs:12:27
+  --> $DIR/print.rs:20:19
    |
-12 |         write!(f, "{:?}", 43.1415)
-   |                           ^^^^^^^
+LL |         write!(f, "{:?}", 43.1415)
+   |                   ^^^^^^
    |
-note: lint level defined here
-  --> $DIR/print.rs:3:23
+   = note: `-D clippy::use-debug` implied by `-D warnings`
+
+error: use of `Debug`-based formatting
+  --> $DIR/print.rs:27:19
    |
-3  | #![deny(print_stdout, use_debug)]
-   |                       ^^^^^^^^^
+LL |         write!(f, "{:?}", 42.718)
+   |                   ^^^^^^
 
 error: use of `println!`
-  --> $DIR/print.rs:25:5
-   |
-25 |     println!("Hello");
-   |     ^^^^^^^^^^^^^^^^^^
+  --> $DIR/print.rs:32:5
    |
-note: lint level defined here
-  --> $DIR/print.rs:3:9
+LL |     println!("Hello");
+   |     ^^^^^^^^^^^^^^^^^
    |
-3  | #![deny(print_stdout, use_debug)]
-   |         ^^^^^^^^^^^^
+   = note: `-D clippy::print-stdout` implied by `-D warnings`
 
 error: use of `print!`
-  --> $DIR/print.rs:26:5
+  --> $DIR/print.rs:33:5
    |
-26 |     print!("Hello");
-   |     ^^^^^^^^^^^^^^^^
+LL |     print!("Hello");
+   |     ^^^^^^^^^^^^^^^
 
 error: use of `print!`
-  --> $DIR/print.rs:28:5
+  --> $DIR/print.rs:35:5
    |
-28 |     print!("Hello {}", "World");
-   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+LL |     print!("Hello {}", "World");
+   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
 error: use of `print!`
-  --> $DIR/print.rs:30:5
+  --> $DIR/print.rs:37:5
    |
-30 |     print!("Hello {:?}", "World");
-   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+LL |     print!("Hello {:?}", "World");
+   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
 error: use of `Debug`-based formatting
-  --> $DIR/print.rs:30:26
+  --> $DIR/print.rs:37:12
    |
-30 |     print!("Hello {:?}", "World");
-   |                          ^^^^^^^
+LL |     print!("Hello {:?}", "World");
+   |            ^^^^^^^^^^^^
 
 error: use of `print!`
-  --> $DIR/print.rs:34:5
+  --> $DIR/print.rs:39:5
    |
-34 |     print!("Hello {:#?}", "#orld");
-   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+LL |     print!("Hello {:#?}", "#orld");
+   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
 error: use of `Debug`-based formatting
-  --> $DIR/print.rs:34:27
+  --> $DIR/print.rs:39:12
    |
-34 |     print!("Hello {:#?}", "#orld");
-   |                           ^^^^^^^
+LL |     print!("Hello {:#?}", "#orld");
+   |            ^^^^^^^^^^^^^
 
-error: aborting due to 8 previous errors
+error: aborting due to 9 previous errors