Skip to content

Commit d2cc6cc

Browse files
committed
1 parent 65898d0 commit d2cc6cc

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

ices/88384.rs

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#![feature(fn_traits)]
2+
#![feature(adt_const_params)]
3+
4+
#[derive(PartialEq, Eq)]
5+
struct CompileTimeSettings{
6+
hooks: &'static[fn()],
7+
}
8+
9+
struct Foo<const T: CompileTimeSettings>;
10+
11+
impl<const T: CompileTimeSettings> Foo<T> {
12+
fn callHooks(){
13+
}
14+
}
15+
16+
fn main(){
17+
const settings: CompileTimeSettings = CompileTimeSettings{
18+
hooks: &[],
19+
};
20+
21+
Foo::<settings>::callHooks();
22+
}

0 commit comments

Comments
 (0)