about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/example/alloc_example.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2025-01-12 12:07:57 +0100
committerGitHub <noreply@github.com>2025-01-12 12:07:57 +0100
commit55503a1d0eee2cd9c8ea2749da06a530baa38b97 (patch)
treeb0628b91af4da20f7ba7f311c6214efbee23a5ad /compiler/rustc_codegen_gcc/example/alloc_example.rs
parent08968a4baf839cc58df8a919082c401079d31a2a (diff)
parent4486a19007f3fe9387eb5c1527b8d045354f316f (diff)
downloadrust-55503a1d0eee2cd9c8ea2749da06a530baa38b97.tar.gz
rust-55503a1d0eee2cd9c8ea2749da06a530baa38b97.zip
Rollup merge of #135374 - compiler-errors:typo-trait-method, r=fee1-dead
Suggest typo fix when trait path expression is typo'ed

When users write something like `Default::defualt()` (notice the typo), failure to resolve the erroneous `defualt` item will cause resolution + lowering to interpret this as a type-dependent path whose self type is `Default` which is a trait object without `dyn`, rather than a trait function like `<_ as Default>::default()`.

Try to provide a bit of guidance in this situation when we can detect the typo.

Fixes https://github.com/rust-lang/rust/issues/135349
Diffstat (limited to 'compiler/rustc_codegen_gcc/example/alloc_example.rs')
0 files changed, 0 insertions, 0 deletions