diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/symbol-names/issue-76365.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/test/ui/symbol-names/issue-76365.rs b/src/test/ui/symbol-names/issue-76365.rs new file mode 100644 index 000000000..932057b65 --- /dev/null +++ b/src/test/ui/symbol-names/issue-76365.rs @@ -0,0 +1,17 @@ +// check-pass +// revisions: legacy v0 +//[legacy]compile-flags: -Z unstable-options -C symbol-mangling-version=legacy --crate-type=lib +//[v0]compile-flags: -C symbol-mangling-version=v0 --crate-type=lib + + +pub struct Bar<const F: bool>; + +impl Bar<true> { + pub fn foo() {} +} + +impl<const F: bool> Bar<F> { + pub fn bar() {} +} + +fn main() {} |