]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/print_with_newline.stderr
Rollup merge of #92849 - flip1995:clippyup, r=Manishearth
[rust.git] / tests / ui / print_with_newline.stderr
index c9e37eab6e1bee9bd430293e45d127c3c8c39062..d409bee30ece3a5b683d39ca9ef51f1d244d43f3 100644 (file)
@@ -7,8 +7,9 @@ LL |     print!("Hello/n");
    = note: `-D clippy::print-with-newline` implied by `-D warnings`
 help: use `println!` instead
    |
-LL |     println!("Hello");
-   |     ^^^^^^^       --
+LL -     print!("Hello/n");
+LL +     println!("Hello");
+   | 
 
 error: using `print!()` with a format string that ends in a single newline
   --> $DIR/print_with_newline.rs:9:5
@@ -18,8 +19,9 @@ LL |     print!("Hello {}/n", "world");
    |
 help: use `println!` instead
    |
-LL |     println!("Hello {}", "world");
-   |     ^^^^^^^          --
+LL -     print!("Hello {}/n", "world");
+LL +     println!("Hello {}", "world");
+   | 
 
 error: using `print!()` with a format string that ends in a single newline
   --> $DIR/print_with_newline.rs:10:5
@@ -29,8 +31,9 @@ LL |     print!("Hello {} {}/n", "world", "#2");
    |
 help: use `println!` instead
    |
-LL |     println!("Hello {} {}", "world", "#2");
-   |     ^^^^^^^             --
+LL -     print!("Hello {} {}/n", "world", "#2");
+LL +     println!("Hello {} {}", "world", "#2");
+   | 
 
 error: using `print!()` with a format string that ends in a single newline
   --> $DIR/print_with_newline.rs:11:5
@@ -40,22 +43,36 @@ LL |     print!("{}/n", 1265);
    |
 help: use `println!` instead
    |
-LL |     println!("{}", 1265);
-   |     ^^^^^^^    --
+LL -     print!("{}/n", 1265);
+LL +     println!("{}", 1265);
+   | 
 
 error: using `print!()` with a format string that ends in a single newline
-  --> $DIR/print_with_newline.rs:30:5
+  --> $DIR/print_with_newline.rs:12:5
+   |
+LL |     print!("/n");
+   |     ^^^^^^^^^^^^
+   |
+help: use `println!` instead
+   |
+LL -     print!("/n");
+LL +     println!();
+   | 
+
+error: using `print!()` with a format string that ends in a single newline
+  --> $DIR/print_with_newline.rs:31:5
    |
 LL |     print!("//n"); // should fail
    |     ^^^^^^^^^^^^^^
    |
 help: use `println!` instead
    |
-LL |     println!("/"); // should fail
-   |     ^^^^^^^    --
+LL -     print!("//n"); // should fail
+LL +     println!("/"); // should fail
+   | 
 
 error: using `print!()` with a format string that ends in a single newline
-  --> $DIR/print_with_newline.rs:37:5
+  --> $DIR/print_with_newline.rs:38:5
    |
 LL | /     print!(
 LL | |         "
@@ -65,12 +82,12 @@ LL | |     );
    |
 help: use `println!` instead
    |
-LL |     println!(
-LL |         ""
+LL ~     println!(
+LL ~         ""
    |
 
 error: using `print!()` with a format string that ends in a single newline
-  --> $DIR/print_with_newline.rs:41:5
+  --> $DIR/print_with_newline.rs:42:5
    |
 LL | /     print!(
 LL | |         r"
@@ -80,9 +97,33 @@ LL | |     );
    |
 help: use `println!` instead
    |
-LL |     println!(
-LL |         r""
+LL ~     println!(
+LL ~         r""
+   |
+
+error: using `print!()` with a format string that ends in a single newline
+  --> $DIR/print_with_newline.rs:50:5
+   |
+LL |     print!("/r/n"); //~ ERROR
+   |     ^^^^^^^^^^^^^^^
+   |
+help: use `println!` instead
+   |
+LL -     print!("/r/n"); //~ ERROR
+LL +     println!("/r"); //~ ERROR
+   | 
+
+error: using `print!()` with a format string that ends in a single newline
+  --> $DIR/print_with_newline.rs:51:5
+   |
+LL |     print!("foo/rbar/n") // ~ ERROR
+   |     ^^^^^^^^^^^^^^^^^^^^
+   |
+help: use `println!` instead
    |
+LL -     print!("foo/rbar/n") // ~ ERROR
+LL +     println!("foo/rbar") // ~ ERROR
+   | 
 
-error: aborting due to 7 previous errors
+error: aborting due to 10 previous errors