Skip to content

Instantly share code, notes, and snippets.

@QuietMisdreavus
Created August 2, 2018 20:27
Show Gist options
  • Save QuietMisdreavus/6d95a51f5d8a2f9a8747be2e1cef995d to your computer and use it in GitHub Desktop.
Save QuietMisdreavus/6d95a51f5d8a2f9a8747be2e1cef995d to your computer and use it in GitHub Desktop.
#![allow(dead_code)]
mod a {
fn f() { loop { } }
}
trait Trait {
fn m1(&self);
fn m2(&self) { loop { } }
}
struct S1;
struct S2;
mod b {
fn f() { loop { } }
struct S3;
impl ::Trait for S3 {
fn m1(&self) { loop { } }
fn m2(&self) { loop { } }
}
}
struct S4;
fn main() {
mod c {
fn f() { loop { } }
}
struct S5;
mod d {
trait Trait {
fn m1(&self);
}
impl Trait for ::S4 {
fn m1(&self) { loop { } }
}
}
impl Trait for S4 {
fn m1(&self) { loop { } }
}
impl Trait for S5 {
fn m1(&self) { loop { } }
}
impl S1 {
fn f() { loop { } }
}
impl Trait for S1 {
fn m1(&self) { loop { } }
fn m2(&self) { loop { } }
}
mod e {
fn f() {
impl ::Trait for ::S2 {
fn m1(&self) { loop { } }
fn m2(&self) { loop { } }
}
loop { }
}
}
loop { }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment