We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
println!
1 parent ff052ee commit c2f2a3cCopy full SHA for c2f2a3c
tests/ui/did_you_mean/println-typo.rs
@@ -0,0 +1,6 @@
1
+// https://internals.rust-lang.org/t/18227
2
+
3
+fn main() {
4
+ prinltn!(); //~ ERROR cannot find macro `prinltn` in this scope
5
+ //^ a macro with a similar name exists: `println`
6
+}
tests/ui/did_you_mean/println-typo.stderr
@@ -0,0 +1,11 @@
+error: cannot find macro `prinltn` in this scope
+ --> $DIR/println-typo.rs:4:5
+ |
+LL | prinltn!();
+ | ^^^^^^^ help: a macro with a similar name exists: `println`
+ --> $SRC_DIR/std/src/macros.rs:LL:COL
7
8
+ = note: similarly named macro `println` defined here
9
10
+error: aborting due to previous error
11
0 commit comments