Skip to content

Instantly share code, notes, and snippets.

@rust-play
rust-play / playground.rs
Created January 11, 2020 15:49
Code shared from the Rust Playground
// Comented code work with nightly
//#![feature(type_alias_impl_trait)]
trait InterfaceThing {
type Result: 'static;
fn do_work() -> Self::Result;
}
struct Z{}
impl InterfaceThing for Z {