about summary refs log tree commit diff
path: root/tests/ui/traits/trait-object-lifetime-default-note.rs
AgeCommit message (Collapse)AuthorLines
2024-09-24replace "cast" with "coercion" where applicableLukas Markeffsky-1/+1
This changes the remaining span for the cast, because the new `Cast` category has a higher priority (lower `Ord`) than the old `Coercion` category, so we no longer report the region error for the "unsizing" coercion from `*const Trait` to itself.
2023-11-12Note about object lifetime defaults in does not live long enough errorNilstrieb-0/+16
This is a aspect of Rust that frequently trips up people who are not aware of it yet. This diagnostic attempts to explain what's happening and why the lifetime constraint, that was never mentioned in the source, arose.