Skip to content

Instantly share code, notes, and snippets.

@bblum
Created June 24, 2013 22:15
Show Gist options
  • Save bblum/5854174 to your computer and use it in GitHub Desktop.
Save bblum/5854174 to your computer and use it in GitHub Desktop.
struct Hello;
impl Neg<Hello> for [Hello, ..0] {
fn neg(&self) -> Hello { Hello }
}
impl Not<()> for Hello {
fn not(&self) { }
}
impl Hello {
fn hello(&self) -> ~str { ~"hello world" }
}
fn foo<T>(_f:&fn()) -> Hello { Hello }
macro_rules! bar(
($_x:ident) => (
// 19 in a row
do foo::<~@&*()>{;!-[]}.$_x()
)
)
fn main() {
println(bar!(hello));
}
@bblum
Copy link
Author

bblum commented Jun 24, 2013

Characters still missing: # % ^ = + \ | ' " / ? ,`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment