Fixes #76267 When there is a single applicable method candidate, but its trait bounds are not satisfied, we avoid saying that the method is "not found". Insted, we update the error message to directly mention which bounds are not satisfied, rather than mentioning them in a note.
11 lines
180 B
Rust
11 lines
180 B
Rust
// aux-build:issue-69725.rs
|
|
|
|
extern crate issue_69725;
|
|
use issue_69725::Struct;
|
|
|
|
fn crash<A>() {
|
|
let _ = Struct::<A>::new().clone();
|
|
//~^ ERROR: the method
|
|
}
|
|
|
|
fn main() {}
|