about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/example/example.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-04-01 06:59:41 +0200
committerGitHub <noreply@github.com>2022-04-01 06:59:41 +0200
commit94b1960535b79bc211a1a9c9967a972e8306e7ae (patch)
treec2924d4fc0443386c2775be189f24643804a97a5 /compiler/rustc_codegen_gcc/example/example.rs
parent3cb5925660f06b5e0b5bed5675edde9597a4c4ee (diff)
parente0c8780a5baa78cbb5e8759d5783000547c0db75 (diff)
downloadrust-94b1960535b79bc211a1a9c9967a972e8306e7ae.tar.gz
rust-94b1960535b79bc211a1a9c9967a972e8306e7ae.zip
Rollup merge of #95260 - compiler-errors:fn, r=davidtwco
Better suggestions for `Fn`-family trait selection errors

1. Suppress suggestions to add `std::ops::Fn{,Mut,Once}` bounds when a type already implements `Fn{,Mut,Once}`
2. Add a note that points out that a type does in fact implement `Fn{,Mut,Once}`, but the arguments vary (either by number or by actual arguments)
3. Add a note that points out that a type does in fact implement `Fn{,Mut,Once}`, but not the right one (e.g. implements `FnMut`, but `Fn` is required).

Fixes #95147
Diffstat (limited to 'compiler/rustc_codegen_gcc/example/example.rs')
0 files changed, 0 insertions, 0 deletions