rust/tests/ui/unsafe-fields
Esteban Küber 049c32797b On E0277, point at type that doesn't implement bound
When encountering an unmet trait bound, point at local type that doesn't implement the trait:

```
error[E0277]: the trait bound `Bar<T>: Foo` is not satisfied
  --> $DIR/issue-64855.rs:9:19
   |
LL | pub struct Bar<T>(<Self as Foo>::Type) where Self: ;
   |                   ^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound
   |
help: the trait `Foo` is not implemented for `Bar<T>`
  --> $DIR/issue-64855.rs:9:1
   |
LL | pub struct Bar<T>(<Self as Foo>::Type) where Self: ;
   | ^^^^^^^^^^^^^^^^^
```
2025-08-22 17:55:15 +00:00
..
auxiliary do not implement unsafe auto traits for types with unsafe fields 2024-12-05 23:52:21 +00:00
auto-traits.current.stderr On E0277, point at type that doesn't implement bound 2025-08-22 17:55:15 +00:00
auto-traits.next.stderr On E0277, point at type that doesn't implement bound 2025-08-22 17:55:15 +00:00
auto-traits.rs do not implement unsafe auto traits for types with unsafe fields 2024-12-05 23:52:21 +00:00
copy-trait.rs Make Copy unsafe to implement for ADTs with unsafe fields 2024-12-07 20:50:00 +00:00
copy-trait.stderr Make Copy unsafe to implement for ADTs with unsafe fields 2024-12-07 20:50:00 +00:00
unsafe-fields-crate.rs do not implement unsafe auto traits for types with unsafe fields 2024-12-05 23:52:21 +00:00
unsafe-fields-crate.stderr do not implement unsafe auto traits for types with unsafe fields 2024-12-05 23:52:21 +00:00
unsafe-fields-parse.rs do not implement unsafe auto traits for types with unsafe fields 2024-12-05 23:52:21 +00:00
unsafe-fields-parse.stderr do not implement unsafe auto traits for types with unsafe fields 2024-12-05 23:52:21 +00:00
unsafe-fields.rs Do not require that unsafe fields lack drop glue 2025-02-28 16:32:06 +00:00
unsafe-fields.stderr Do not require that unsafe fields lack drop glue 2025-02-28 16:32:06 +00:00