epilys on Nostr: chat, is this real??? const S: &&() = &&(); #[inline(never)] fn get_ptr<'a, 'b, T: ...
chat, is this real???
const S: &&() = &&();
#[inline(never)]
fn get_ptr<'a, 'b, T: ?Sized>(x: &'a mut T) -> &'b mut T {
fn ident<'a, 'b, T: ?Sized>(_val_a: &'a &'b (), val_b: &'b mut T) -> &'a mut T {
val_b
}
let f: fn(_, &'a mut T) -> &'b mut T = ident;
f(S, x)
}
#Rust #RustLang #UIUCTF #UIUCTF2024
Published at
2024-06-29 12:16:06Event JSON
{
"id": "c4b1ff1a78bfb5650bbade2710b3b4da93eff8ba94d1793e2d1c4be708e9e1fa",
"pubkey": "67591f03eddfb6ba0ccae76b6fcc9fdf659c0f125a19c1cc64ba54fc2990ca96",
"created_at": 1719663366,
"kind": 1,
"tags": [
[
"t",
"rust"
],
[
"t",
"rustlang"
],
[
"t",
"uiuctf"
],
[
"t",
"uiuctf2024"
],
[
"proxy",
"https://chaos.social/users/epilys/statuses/112699858370556614",
"activitypub"
]
],
"content": "chat, is this real???\n\nconst S: \u0026\u0026() = \u0026\u0026();\n#[inline(never)]\nfn get_ptr\u003c'a, 'b, T: ?Sized\u003e(x: \u0026'a mut T) -\u003e \u0026'b mut T {\n fn ident\u003c'a, 'b, T: ?Sized\u003e(_val_a: \u0026'a \u0026'b (), val_b: \u0026'b mut T) -\u003e \u0026'a mut T {\n val_b\n }\n let f: fn(_, \u0026'a mut T) -\u003e \u0026'b mut T = ident;\n f(S, x)\n}\n\n#Rust #RustLang #UIUCTF #UIUCTF2024\n\nhttps://assets.chaos.social/media_attachments/files/112/699/857/074/804/395/original/6f58a5e47d4ee202.png",
"sig": "846f69f18c16f8c2ca8b8a808b3a7881b8d482738fab274f640d0f67be7a13d142a2a381973a1849da8fbe8e81ce4f01dbc7164e0b3ea12ce7da0eeb79144573"
}