Skip to content

Introduce tcx.get_diagnostic_name #89534

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 7, 2021
Merged
Changes from 1 commit
Commits
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
Bless tests
  • Loading branch information
camsteffen committed Oct 6, 2021
commit a8d8bfd3763cfde5a27dc7babd6691f1b3d65840
11 changes: 11 additions & 0 deletions src/test/ui/suggestions/derive-trait-for-method-call.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,17 @@ LL | let y = x.test();
`Enum: Clone`
`Enum: Default`
`CloneEnum: Default`
note: the following trait must be implemented
--> $SRC_DIR/core/src/default.rs:LL:COL
|
LL | / pub trait Default: Sized {
LL | | /// Returns the "default value" for a type.
LL | | ///
LL | | /// Default values are often some kind of initial value, identity value, or anything else that
... |
LL | | fn default() -> Self;
LL | | }
| |_^
help: consider annotating `Enum` with `#[derive(Clone)]`
|
LL | #[derive(Clone)]
Expand Down