2020-10-02 08:28:05 -05:00
|
|
|
// check-pass
|
|
|
|
// revisions: legacy v0
|
2021-10-21 07:57:14 -05:00
|
|
|
//[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
|
2020-10-02 08:28:05 -05:00
|
|
|
|
|
|
|
|
|
|
|
pub struct Bar<const F: bool>;
|
|
|
|
|
|
|
|
impl Bar<true> {
|
|
|
|
pub fn foo() {}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<const F: bool> Bar<F> {
|
|
|
|
pub fn bar() {}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|