File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed
branches/try/src/librustc_resolve Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: aca2057ed5fb7af3f8905b2bc01f72fa001c35c8
3
3
refs/heads/snap-stage3: 1af31d4974e33027a68126fa5a5a3c2c6491824f
4
- refs/heads/try: 028aba38ff073cc951991d46e458f099dcb05ef4
4
+ refs/heads/try: 6ae31b6f893a16999c5c85f6426dbda0d6648283
5
5
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
6
6
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
7
7
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
Original file line number Diff line number Diff line change @@ -398,19 +398,29 @@ impl Bar {
398
398
"## ,
399
399
400
400
E0412 : r##"
401
- An undeclared type name was used. Example of erroneous code :
401
+ An undeclared type name was used. Example of erroneous codes :
402
402
403
403
```
404
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
+ }
405
409
```
406
410
407
411
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 :
409
413
410
414
```
411
415
struct Something;
412
416
413
417
impl Something {}
418
+ // or:
419
+ trait Foo {
420
+ type N;
421
+
422
+ fn bar(Self::N);
423
+ }
414
424
```
415
425
"## ,
416
426
You can’t perform that action at this time.
0 commit comments