mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-15 17:14:50 +00:00
16 lines
225 B
Rust
16 lines
225 B
Rust
//@ check-pass
|
|
//@ aux-build:xcrate-const-ctor-a.rs
|
|
|
|
#![feature(adt_const_params)]
|
|
|
|
extern crate xcrate_const_ctor_a;
|
|
use xcrate_const_ctor_a::Foo;
|
|
|
|
fn bar<const N: Foo>() {}
|
|
|
|
fn baz() {
|
|
bar::<{ Foo }>();
|
|
}
|
|
|
|
fn main() {}
|