Debian Codegraph @

third_party/rust/extend/tests/compile_pass/associated_constants.rs

raw
1 use extend::ext;
2
3 #[ext]
4 impl Option<String> {
5 const FOO: usize = 1;
6 }
7
8 fn main() {
9 assert_eq!(Option::<String>::FOO, 1);
10 }