Skip to content

Commit

Permalink
Update ui test suite to nightly-2023-10-06
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Oct 6, 2023
1 parent 1aa0e59 commit 88956f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/ui/impl-trait.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ help: consider using the `'static` lifetime
9 | pub fn ref_cast(s: impl AsRef<str>) -> &'static Self;
| +++++++

error[E0562]: `impl Trait` only allowed in function and inherent method return types, not in paths
error[E0562]: `impl Trait` only allowed in function and inherent method argument and return types, not in paths
--> tests/ui/impl-trait.rs:9:24
|
9 | pub fn ref_cast(s: impl AsRef<str>) -> &Self;
| ^^^^^^^^^^^^^^^

error[E0562]: `impl Trait` only allowed in function and inherent method return types, not in paths
error[E0562]: `impl Trait` only allowed in function and inherent method argument and return types, not in paths
--> tests/ui/impl-trait.rs:12:26
|
12 | pub fn ref_cast2(s: &impl AsRef<str>) -> &Self;
Expand Down

0 comments on commit 88956f2

Please sign in to comment.