diff options
| author | r0cky <mu001999@outlook.com> | 2024-02-07 10:42:01 +0800 |
|---|---|---|
| committer | r0cky <mu001999@outlook.com> | 2024-02-07 10:42:01 +0800 |
| commit | c7519d42c2664828c98fdb98acab73e9a39b0b97 (patch) | |
| tree | 87e875c88b08158761df546ea4e88902fbb08d6a /tests/ui/explicit | |
| parent | 40878ca6ea79d6e55e430846a2de3350a76cd08f (diff) | |
| download | rust-c7519d42c2664828c98fdb98acab73e9a39b0b97.tar.gz rust-c7519d42c2664828c98fdb98acab73e9a39b0b97.zip | |
Update tests
Diffstat (limited to 'tests/ui/explicit')
3 files changed, 3 insertions, 1 deletions
diff --git a/tests/ui/explicit/explicit-call-to-supertrait-dtor.fixed b/tests/ui/explicit/explicit-call-to-supertrait-dtor.fixed index bb093a4af4a..3c71587c8e3 100644 --- a/tests/ui/explicit/explicit-call-to-supertrait-dtor.fixed +++ b/tests/ui/explicit/explicit-call-to-supertrait-dtor.fixed @@ -1,5 +1,6 @@ // run-rustfix +#![allow(dead_code)] #![allow(dropping_references)] struct Foo { diff --git a/tests/ui/explicit/explicit-call-to-supertrait-dtor.rs b/tests/ui/explicit/explicit-call-to-supertrait-dtor.rs index 1a9f89c054f..075d4cbe02b 100644 --- a/tests/ui/explicit/explicit-call-to-supertrait-dtor.rs +++ b/tests/ui/explicit/explicit-call-to-supertrait-dtor.rs @@ -1,5 +1,6 @@ // run-rustfix +#![allow(dead_code)] #![allow(dropping_references)] struct Foo { diff --git a/tests/ui/explicit/explicit-call-to-supertrait-dtor.stderr b/tests/ui/explicit/explicit-call-to-supertrait-dtor.stderr index d2d69ce6daf..13b6ee9987e 100644 --- a/tests/ui/explicit/explicit-call-to-supertrait-dtor.stderr +++ b/tests/ui/explicit/explicit-call-to-supertrait-dtor.stderr @@ -1,5 +1,5 @@ error[E0040]: explicit use of destructor method - --> $DIR/explicit-call-to-supertrait-dtor.rs:22:14 + --> $DIR/explicit-call-to-supertrait-dtor.rs:23:14 | LL | self.drop(); | ^^^^ explicit destructor calls not allowed |
