mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 13:33:31 +00:00
parent
f3a1b902fd
commit
59dc1c9b2c
1 changed files with 1 additions and 5 deletions
|
@ -13,7 +13,6 @@ pub(crate) fn trait_impl_missing_assoc_item(
|
|||
) -> Diagnostic {
|
||||
let missing = d.missing.iter().format_with(", ", |(name, item), f| {
|
||||
f(&match *item {
|
||||
hir::AssocItem::Function(func) if func.is_async(ctx.sema.db) => "`async fn ",
|
||||
hir::AssocItem::Function(_) => "`fn ",
|
||||
hir::AssocItem::Const(_) => "`const ",
|
||||
hir::AssocItem::TypeAlias(_) => "`type ",
|
||||
|
@ -57,25 +56,22 @@ trait Trait {
|
|||
const C: ();
|
||||
type T;
|
||||
fn f();
|
||||
async fn async_f();
|
||||
}
|
||||
|
||||
impl Trait for () {
|
||||
const C: () = ();
|
||||
type T = ();
|
||||
fn f() {}
|
||||
async fn async_f() {}
|
||||
}
|
||||
|
||||
impl Trait for () {
|
||||
//^^^^^ error: not all trait items implemented, missing: `const C`
|
||||
type T = ();
|
||||
fn f() {}
|
||||
async fn async_f() {}
|
||||
}
|
||||
|
||||
impl Trait for () {
|
||||
//^^^^^ error: not all trait items implemented, missing: `const C`, `type T`, `fn f`, `async fn async_f`
|
||||
//^^^^^ error: not all trait items implemented, missing: `const C`, `type T`, `fn f`
|
||||
}
|
||||
|
||||
"#,
|
||||
|
|
Loading…
Reference in a new issue