gо
int x = 0;
void* y = x; // это не NULL, потому что x не константное выражение
Size: a a a
gо
int x = 0;
void* y = x; // это не NULL, потому что x не константное выражение
MS
MS
gо
void* zero = mmap(y, 1, PROT_READ | PROT_WRITE, MAP_ANON | MAP_FIXED, -1, 0);
gо
gо
gо
MS
MS
gо
NULL битово равным -1gо
-1 ты на юниксах не можешьgо
IA
const_generic.struct Make_index<Dummy_type, const index : u8> {
_dummy : PhantomData<Dummy_type>
}#![feature(specialization, const_generics, const_evaluatable_checked)]). Компилятор почему-то выдаёт следующее: `error[E0275]: overflow evaluating the requirement `Make_index<_, {_: u8}>: Make_index_trait``Э
Э
IA
Э
fn bar(mut i: impl Iterator) { match i.next() { Some(_) => bar(&mut i), None => () } }Э
Э
fn main() {
println!("Hello, world!");
bar([()].iter());
}
fn bar(mut i: impl Iterator) {
match i.next() {
Some(_) => bar(&mut i),
None => (),
}
}AL