about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorCentri3 <114838443+Centri3@users.noreply.github.com>2023-06-10 09:13:04 -0500
committerCentri3 <114838443+Centri3@users.noreply.github.com>2023-06-12 03:22:01 -0500
commit95d1bff2251ff33e1e8ca2bc0c1941c4e91bc2e4 (patch)
treefb2940172986063108e19a12c161cdb15d72b350 /tests
parent243943ff56c755822968a48d5949f79c1d3a7dfa (diff)
downloadrust-95d1bff2251ff33e1e8ca2bc0c1941c4e91bc2e4.tar.gz
rust-95d1bff2251ff33e1e8ca2bc0c1941c4e91bc2e4.zip
add to tests and configuration
Diffstat (limited to 'tests')
-rw-r--r--tests/ui/min_ident_chars.rs5
-rw-r--r--tests/ui/min_ident_chars.stderr16
2 files changed, 18 insertions, 3 deletions
diff --git a/tests/ui/min_ident_chars.rs b/tests/ui/min_ident_chars.rs
index 85608d030ed..c5e03468ef9 100644
--- a/tests/ui/min_ident_chars.rs
+++ b/tests/ui/min_ident_chars.rs
@@ -67,6 +67,7 @@ fn main() {
     let o = O { o };
 
     for j in 0..1000 {}
+    for _ in 0..10 {}
 
     // Do not lint code from external macros
     external! { for j in 0..1000 {} }
@@ -78,4 +79,6 @@ fn main() {
 }
 
 fn b() {}
-fn owo() {}
+fn wrong_pythagoras(a: f32, b: f32) -> f32 {
+    a * a + a * b
+}
diff --git a/tests/ui/min_ident_chars.stderr b/tests/ui/min_ident_chars.stderr
index cd8825634c3..66a63f65756 100644
--- a/tests/ui/min_ident_chars.stderr
+++ b/tests/ui/min_ident_chars.stderr
@@ -157,10 +157,22 @@ LL |     let o = O { o };
    |         ^
 
 error: this ident consists of a single char
-  --> $DIR/min_ident_chars.rs:80:4
+  --> $DIR/min_ident_chars.rs:81:4
    |
 LL | fn b() {}
    |    ^
 
-error: aborting due to 27 previous errors
+error: this ident consists of a single char
+  --> $DIR/min_ident_chars.rs:82:21
+   |
+LL | fn wrong_pythagoras(a: f32, b: f32) -> f32 {
+   |                     ^
+
+error: this ident consists of a single char
+  --> $DIR/min_ident_chars.rs:82:29
+   |
+LL | fn wrong_pythagoras(a: f32, b: f32) -> f32 {
+   |                             ^
+
+error: aborting due to 29 previous errors