diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:19:13 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:19:13 +0000 |
commit | 218caa410aa38c29984be31a5229b9fa717560ee (patch) | |
tree | c54bd55eeb6e4c508940a30e94c0032fbd45d677 /src/test/ui/symbol-names/trait-objects.rs | |
parent | Releasing progress-linux version 1.67.1+dfsg1-1~progress7.99u1. (diff) | |
download | rustc-218caa410aa38c29984be31a5229b9fa717560ee.tar.xz rustc-218caa410aa38c29984be31a5229b9fa717560ee.zip |
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/ui/symbol-names/trait-objects.rs')
-rw-r--r-- | src/test/ui/symbol-names/trait-objects.rs | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/src/test/ui/symbol-names/trait-objects.rs b/src/test/ui/symbol-names/trait-objects.rs deleted file mode 100644 index 5bcbc0841..000000000 --- a/src/test/ui/symbol-names/trait-objects.rs +++ /dev/null @@ -1,47 +0,0 @@ -// Ensure that trait objects don't include more than one binder. See #83611 - -// build-fail -// revisions: v0 -//[v0]compile-flags: -C symbol-mangling-version=v0 -//[v0]normalize-stderr-test: "core\[.*?\]" -> "core[HASH]" - -#![feature(rustc_attrs)] - -trait Bar { - fn method(&self) {} -} - -impl Bar for &dyn FnMut(&u8) { - #[rustc_symbol_name] - //[v0]~^ ERROR symbol-name - //[v0]~| ERROR demangling - //[v0]~| ERROR demangling-alt - fn method(&self) {} -} - -trait Foo { - fn method(&self) {} -} - -impl Foo for &(dyn FnMut(&u8) + for<'b> Send) { - #[rustc_symbol_name] - //[v0]~^ ERROR symbol-name - //[v0]~| ERROR demangling - //[v0]~| ERROR demangling-alt - fn method(&self) {} -} - -trait Baz { - fn method(&self) {} -} - -impl Baz for &(dyn for<'b> Send + FnMut(&u8)) { - #[rustc_symbol_name] - //[v0]~^ ERROR symbol-name - //[v0]~| ERROR demangling - //[v0]~| ERROR demangling-alt - fn method(&self) {} -} - -fn main() { -} |