Skip to content

Instantly share code, notes, and snippets.

@AndyShiue
Created November 9, 2023 15:40
Show Gist options
  • Save AndyShiue/bcaa9e762ead5a4546c4e6b9af08c072 to your computer and use it in GitHub Desktop.
Save AndyShiue/bcaa9e762ead5a4546c4e6b9af08c072 to your computer and use it in GitHub Desktop.
where-clause after trait declaration
use std::fmt::Display;
trait A<T> where T : Display {}
fn main() {
println!("Hello, world!");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment