Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: rust-lang/rust
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: d63cc4448aa22e46d164b54358464389f7f924ae
Choose a base ref
..
head repository: rust-lang/rust
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 5642733030e4e49a03b0c478b2e74431e5223511
Choose a head ref
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/ui/traits/suggest-impl-on-bare-trait-return.rs
2 changes: 1 addition & 1 deletion tests/ui/traits/suggest-impl-on-bare-trait-return.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//@ edition:2021
trait Trait {}

fn fun() -> Trait { //~ ERROR expected a type, found a trait
async fn fun() -> Trait { //~ ERROR expected a type, found a trait
todo!()
}