Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
b60c3e2
Closes #15919
bombless Apr 30, 2015
4c8b813
Closes #15919
bombless Apr 30, 2015
51a1e83
doc: Remove mention of 30 minute intro
brson May 8, 2015
7d9e605
Add error explanation for E0317.
meqif May 10, 2015
c0412bc
Fix documentation URL in diagnostic message.
meqif May 10, 2015
f3a3684
Add error explanation for E0154.
meqif May 10, 2015
e7fa00a
Add error explanation for E0259.
meqif May 10, 2015
60ec4ab
Add error explanation for E0260.
meqif May 10, 2015
bff1707
Fixed one textual mistake and one casing error.
michal-czardybon May 8, 2015
ef03055
Improve wording in error explanation.
meqif May 11, 2015
aa529ef
Add missing keyword in `extern crate` declarations.
meqif May 11, 2015
d13f765
Make mention of `if` more generic
frewsxcv May 12, 2015
93c21c7
Correct claims about &T's Copyness.
Ms2ger May 12, 2015
6faa8d6
Add a link to the error index to the main doc page.
michaelsproul May 12, 2015
e780fb2
TRPL: Borrow and AsRef
steveklabnik Apr 30, 2015
393a37e
Correct various small points, expand some sections, while avoiding
nikomatsakis May 12, 2015
6987900
Rollup merge of #24987 - bombless:large-array, r=pnkfelix
steveklabnik May 12, 2015
cae0844
Rollup merge of #24996 - steveklabnik:gh24163, r=aturon
steveklabnik May 12, 2015
40a5f3c
Rollup merge of #25220 - brson:doc1, r=steveklabnik
steveklabnik May 12, 2015
57852e9
Rollup merge of #25221 - michal-czardybon:master, r=steveklabnik
steveklabnik May 12, 2015
b814884
Rollup merge of #25267 - meqif:explain_e0317, r=alexcrichton
steveklabnik May 12, 2015
5096ce6
Rollup merge of #25322 - frewsxcv:patch-23, r=steveklabnik
steveklabnik May 12, 2015
29dd563
Rollup merge of #25327 - Ms2ger:copy-ref, r=pnkfelix
steveklabnik May 12, 2015
b3c92d9
Rollup merge of #25331 - michaelsproul:err-idx-doc-link, r=Manishearth
steveklabnik May 12, 2015
34bc44f
Rollup merge of #25335 - nikomatsakis:updates-to-reference-manual, r=…
steveklabnik May 12, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add error explanation for E0260.
  • Loading branch information
meqif committed May 10, 2015
commit 60ec4ab220385be1ad2aef237733d7f38c2196b3
35 changes: 34 additions & 1 deletion src/librustc_resolve/diagnostics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,40 @@ extern crate_a as other_name;
```
"##,

E0260: r##"
The name for an item declaration conflicts with an external crate's name.

For instance,
```
extern abc;

struct abc;
```

There are two possible solutions:

Solution #1: Rename the item.

```
extern abc;

struct xyz;
```

Solution #2: Import the crate with a different name.

```
extern abc as xyz;

struct abc;
```

See the Declaration Statements section of the reference for more information
about what constitutes an Item declaration and what does not:

http://doc.rust-lang.org/reference.html#statements
"##,

E0317: r##"
User-defined types or type parameters cannot shadow the primitive types.
This error indicates you tried to define a type, struct or enum with the same
Expand All @@ -91,7 +125,6 @@ register_diagnostics! {
E0256, // import conflicts with type in this module
E0257, // inherent implementations are only allowed on types defined in the current module
E0258, // import conflicts with existing submodule
E0260, // name conflicts with an external crate that has been imported into this module
E0364, // item is private
E0365 // item is private
}