summaryrefslogtreecommitdiffstats
path: root/src/test/ui/lint/lint-non-camel-case-types.stderr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:02:58 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:02:58 +0000
commit698f8c2f01ea549d77d7dc3338a12e04c11057b9 (patch)
tree173a775858bd501c378080a10dca74132f05bc50 /src/test/ui/lint/lint-non-camel-case-types.stderr
parentInitial commit. (diff)
downloadrustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.tar.xz
rustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.zip
Adding upstream version 1.64.0+dfsg1.upstream/1.64.0+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/ui/lint/lint-non-camel-case-types.stderr')
-rw-r--r--src/test/ui/lint/lint-non-camel-case-types.stderr62
1 files changed, 62 insertions, 0 deletions
diff --git a/src/test/ui/lint/lint-non-camel-case-types.stderr b/src/test/ui/lint/lint-non-camel-case-types.stderr
new file mode 100644
index 000000000..875380b5d
--- /dev/null
+++ b/src/test/ui/lint/lint-non-camel-case-types.stderr
@@ -0,0 +1,62 @@
+error: type `ONE_TWO_THREE` should have an upper camel case name
+ --> $DIR/lint-non-camel-case-types.rs:4:8
+ |
+LL | struct ONE_TWO_THREE;
+ | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `OneTwoThree`
+ |
+note: the lint level is defined here
+ --> $DIR/lint-non-camel-case-types.rs:1:11
+ |
+LL | #![forbid(non_camel_case_types)]
+ | ^^^^^^^^^^^^^^^^^^^^
+
+error: type `foo` should have an upper camel case name
+ --> $DIR/lint-non-camel-case-types.rs:7:8
+ |
+LL | struct foo {
+ | ^^^ help: convert the identifier to upper camel case (notice the capitalization): `Foo`
+
+error: type `foo2` should have an upper camel case name
+ --> $DIR/lint-non-camel-case-types.rs:11:6
+ |
+LL | enum foo2 {
+ | ^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Foo2`
+
+error: type `foo3` should have an upper camel case name
+ --> $DIR/lint-non-camel-case-types.rs:15:8
+ |
+LL | struct foo3 {
+ | ^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Foo3`
+
+error: type `foo4` should have an upper camel case name
+ --> $DIR/lint-non-camel-case-types.rs:19:6
+ |
+LL | type foo4 = isize;
+ | ^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Foo4`
+
+error: variant `bar` should have an upper camel case name
+ --> $DIR/lint-non-camel-case-types.rs:22:5
+ |
+LL | bar
+ | ^^^ help: convert the identifier to upper camel case: `Bar`
+
+error: trait `foo6` should have an upper camel case name
+ --> $DIR/lint-non-camel-case-types.rs:25:7
+ |
+LL | trait foo6 {
+ | ^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Foo6`
+
+error: associated type `foo7` should have an upper camel case name
+ --> $DIR/lint-non-camel-case-types.rs:26:10
+ |
+LL | type foo7;
+ | ^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Foo7`
+
+error: type parameter `ty` should have an upper camel case name
+ --> $DIR/lint-non-camel-case-types.rs:30:6
+ |
+LL | fn f<ty>(_: ty) {}
+ | ^^ help: convert the identifier to upper camel case: `Ty`
+
+error: aborting due to 9 previous errors
+