diff options
| author | 许杰友 Jieyou Xu (Joe) <jieyouxu@outlook.com> | 2024-02-16 20:02:50 +0000 |
|---|---|---|
| committer | 许杰友 Jieyou Xu (Joe) <jieyouxu@outlook.com> | 2024-02-16 20:02:50 +0000 |
| commit | ec2cc761bc7067712ecc7734502f703fe3b024c8 (patch) | |
| tree | 7ab55cd9562da45b86c959f1b98c199b2b03ca92 /tests/ui/return | |
| parent | e53d6dd35bb38b81dff4b00497f4c152e9009499 (diff) | |
| download | rust-ec2cc761bc7067712ecc7734502f703fe3b024c8.tar.gz rust-ec2cc761bc7067712ecc7734502f703fe3b024c8.zip | |
[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives
Diffstat (limited to 'tests/ui/return')
| -rw-r--r-- | tests/ui/return/return-impl-trait.fixed | 2 | ||||
| -rw-r--r-- | tests/ui/return/return-impl-trait.rs | 2 | ||||
| -rw-r--r-- | tests/ui/return/tail-expr-as-potential-return.rs | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/ui/return/return-impl-trait.fixed b/tests/ui/return/return-impl-trait.fixed index ff2b02f73ea..1dfc0fc0f3d 100644 --- a/tests/ui/return/return-impl-trait.fixed +++ b/tests/ui/return/return-impl-trait.fixed @@ -1,4 +1,4 @@ -// run-rustfix +//@ run-rustfix trait Trait {} impl Trait for () {} diff --git a/tests/ui/return/return-impl-trait.rs b/tests/ui/return/return-impl-trait.rs index e905d712f62..6b1b8a4b738 100644 --- a/tests/ui/return/return-impl-trait.rs +++ b/tests/ui/return/return-impl-trait.rs @@ -1,4 +1,4 @@ -// run-rustfix +//@ run-rustfix trait Trait {} impl Trait for () {} diff --git a/tests/ui/return/tail-expr-as-potential-return.rs b/tests/ui/return/tail-expr-as-potential-return.rs index 2046d6680dd..37dee1c19db 100644 --- a/tests/ui/return/tail-expr-as-potential-return.rs +++ b/tests/ui/return/tail-expr-as-potential-return.rs @@ -9,7 +9,7 @@ // This test was amended to also serve as a regression test for #92308, where // this suggestion would not trigger with async functions. // -// edition:2018 +//@ edition:2018 fn main() { } |
