Skip to content

Commit 052196b

Browse files
---
yaml --- r: 229297 b: refs/heads/try c: 6ae31b6 h: refs/heads/master i: 229295: 3df7705 v: v3
1 parent cce7796 commit 052196b

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: aca2057ed5fb7af3f8905b2bc01f72fa001c35c8
33
refs/heads/snap-stage3: 1af31d4974e33027a68126fa5a5a3c2c6491824f
4-
refs/heads/try: 028aba38ff073cc951991d46e458f099dcb05ef4
4+
refs/heads/try: 6ae31b6f893a16999c5c85f6426dbda0d6648283
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
66
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
77
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try/src/librustc_resolve/diagnostics.rs

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,19 +398,29 @@ impl Bar {
398398
"##,
399399

400400
E0412: r##"
401-
An undeclared type name was used. Example of erroneous code:
401+
An undeclared type name was used. Example of erroneous codes:
402402
403403
```
404404
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+
}
405409
```
406410
407411
To fix this error, please verify you didn't misspell the type name or
408-
you did declare it. Example:
412+
you did declare it. Examples:
409413
410414
```
411415
struct Something;
412416
413417
impl Something {}
418+
// or:
419+
trait Foo {
420+
type N;
421+
422+
fn bar(Self::N);
423+
}
414424
```
415425
"##,
416426

0 commit comments

Comments
 (0)