Guest User

Untitled

a guest
Mar 23rd, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. pub struct Foo(usize);
  2. impl Foo {
  3. const BAR: Foo = Foo(5);
  4. }
  5.  
  6. fn main(){
  7. let foo: Foo = Foo::BAR;
  8. println!("{}", foo.0);
  9. }
Add Comment
Please, Sign In to add comment