]> git.proxmox.com Git - rustc.git/blob - src/test/ui/symbol-names/issue-76365.rs
New upstream version 1.51.0+dfsg1
[rustc.git] / src / test / ui / symbol-names / issue-76365.rs
1 // check-pass
2 // revisions: legacy v0
3 //[legacy]compile-flags: -Z symbol-mangling-version=legacy --crate-type=lib
4 //[v0]compile-flags: -Z symbol-mangling-version=v0 --crate-type=lib
5
6
7 pub struct Bar<const F: bool>;
8
9 impl Bar<true> {
10 pub fn foo() {}
11 }
12
13 impl<const F: bool> Bar<F> {
14 pub fn bar() {}
15 }
16
17 fn main() {}