We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 028aba3 commit 6ae31b6Copy full SHA for 6ae31b6
src/librustc_resolve/diagnostics.rs
@@ -398,19 +398,29 @@ impl Bar {
398
"##,
399
400
E0412: r##"
401
-An undeclared type name was used. Example of erroneous code:
+An undeclared type name was used. Example of erroneous codes:
402
403
```
404
impl Something {} // error: use of undeclared type name `Something`
405
+// or:
406
+trait Foo {
407
+ fn bar(N); // error: use of undeclared type name `N`
408
+}
409
410
411
To fix this error, please verify you didn't misspell the type name or
-you did declare it. Example:
412
+you did declare it. Examples:
413
414
415
struct Something;
416
417
impl Something {}
418
419
420
+ type N;
421
+
422
+ fn bar(Self::N);
423
424
425
426
0 commit comments