Created
November 9, 2023 15:40
-
-
Save AndyShiue/bcaa9e762ead5a4546c4e6b9af08c072 to your computer and use it in GitHub Desktop.
where-clause after trait declaration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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