Files
rust/tests/ui/traits
Jubilee 08689af7b4 Rollup merge of #131273 - estebank:issue-131051, r=compiler-errors
Account for `impl Trait {` when `impl Trait for Type {` was intended

On editions where bare traits are never allowed, detect if the user has written `impl Trait` with no type, silence any dyn-compatibility errors, and provide a structured suggestion for the potentially missing type:

```
error[E0782]: trait objects must include the `dyn` keyword
  --> $DIR/missing-for-type-in-impl.rs:8:6
   |
LL | impl Foo<i64> {
   |      ^^^^^^^^
   |
help: add `dyn` keyword before this trait
   |
LL | impl dyn Foo<i64> {
   |      +++
help: you might have intended to implement this trait for a given type
   |
LL | impl Foo<i64> for /* Type */ {
   |               ++++++++++++++
```

CC #131051.
2024-10-04 19:19:27 -07:00
..
2024-07-03 15:37:34 +00:00
2023-06-19 15:39:55 +02:00
2024-04-07 17:38:07 -03:00
2024-03-03 16:30:48 -03:00
2024-02-07 10:42:01 +08:00
2024-03-03 16:30:48 -03:00
2024-03-03 16:30:48 -03:00
2024-03-03 16:30:48 -03:00
2023-04-20 15:06:17 -03:00
2024-02-07 10:42:01 +08:00
2023-10-13 19:18:46 +00:00
2023-12-05 17:15:46 +00:00
2024-01-05 10:00:59 +00:00