Update src/doc/rustdoc/src/lints.md

Co-authored-by: Joshua Nelson <joshua@yottadb.com>
This commit is contained in:
Manish Goregaokar 2020-09-14 22:35:41 -07:00 committed by GitHub
parent 6f1fa2b163
commit 792b2ea581
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,11 +25,11 @@ pub fn foo() {}
You'll get a warning saying:
```text
warning: `[Nonexistent]` cannot be resolved, ignoring it.
warning: unresolved link to `Nonexistent`
--> test.rs:1:24
|
1 | /// I want to link to [`Nonexistent`] but it doesn't exist!
| ^^^^^^^^^^^^^ cannot be resolved, ignoring
| ^^^^^^^^^^^^^ no item named `Nonexistent` in `test`
```
It will also warn when there is an ambiguity and suggest how to disambiguate: