about summary refs log tree commit diff
path: root/tests/rustdoc/inline_cross/auxiliary/const-effect-param.rs
blob: 161d0c9d54e1113f1482fd4474011f6cb7d80d7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//@ compile-flags: -Znext-solver
#![feature(effects, const_trait_impl)]
#![allow(incomplete_features)]

#[const_trait]
pub trait Resource {}

pub const fn load<R: ~const Resource>() -> i32 {
    0
}

pub const fn lock<R: Resource>() {}

#[allow(non_upper_case_globals)]
pub trait Clash<const host: u64> {}

#[allow(non_upper_case_globals)]
pub const fn clash<T: Clash<host>, const host: u64>() {}