Steven Fackler | 07ea23e | 2014-02-14 06:57:43 | [diff] [blame] | 1 | // Copyright 2014 The Rust Project Developers. See the COPYRIGHT |
| 2 | // file at the top-level directory of this distribution and at |
| 3 | // http://rust-lang.org/COPYRIGHT. |
| 4 | // |
| 5 | // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or |
| 6 | // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license |
| 7 | // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your |
| 8 | // option. This file may not be copied, modified, or distributed |
| 9 | // except according to those terms. |
| 10 | |
| 11 | pub fn main() { |
Jorge Aparicio | 788181d | 2015-01-28 13:34:18 | [diff] [blame] | 12 | #[derive(Debug)] |
Steven Fackler | 07ea23e | 2014-02-14 06:57:43 | [diff] [blame] | 13 | struct Foo { |
Alex Crichton | 43bfaa4 | 2015-03-26 00:06:52 | [diff] [blame] | 14 | foo: isize, |
Steven Fackler | 07ea23e | 2014-02-14 06:57:43 | [diff] [blame] | 15 | } |
| 16 | |
| 17 | let f = Foo { foo: 10 }; |
Sean McArthur | 44440e5 | 2014-12-20 08:09:35 | [diff] [blame] | 18 | format!("{:?}", f); |
Steven Fackler | 07ea23e | 2014-02-14 06:57:43 | [diff] [blame] | 19 | } |