-
Notifications
You must be signed in to change notification settings - Fork 13.8k
Closed
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lints
Description
Both
#![feature(intrinsics)]
extern "rust-intrinsic" {
fn size_of<T>(); // error: intrinsic has wrong type
}
and
use std::rc::Rc;
struct Foo;
impl Foo {
fn x(self: Rc<Foo>) {} // (Only Box<Self>, &Self, Self, or &mut Self work as explicit self params)
}
trigger E0211. The error index only handles the first (https://doc.rust-lang.org/error-index.html#E0211)
We should expand the help text to mention all cases that can trigger this error.
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lints