bless tests
This commit is contained in:
parent
92f4c59e48
commit
6c1e3bb6e9
42 changed files with 224 additions and 243 deletions
|
@ -7,7 +7,7 @@
|
|||
|
||||
// ensure we are passing in the correct host effect in always const contexts.
|
||||
|
||||
pub const fn hmm</* T, */ #[rustc_host] const host: bool = true>() -> usize {
|
||||
pub const fn hmm<T, #[rustc_host] const host: bool = true>() -> usize {
|
||||
if host {
|
||||
1
|
||||
} else {
|
||||
|
@ -16,14 +16,12 @@ pub const fn hmm</* T, */ #[rustc_host] const host: bool = true>() -> usize {
|
|||
}
|
||||
|
||||
const _: () = {
|
||||
let x = hmm();
|
||||
let x = hmm::<()>();
|
||||
assert!(0 == x);
|
||||
};
|
||||
|
||||
/* FIXME(effects)
|
||||
pub const fn uwu(x: [u8; hmm::<()>()]) {
|
||||
let [] = x;
|
||||
}
|
||||
*/
|
||||
|
||||
fn main() {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue