blob: 435d15aab8f26fbdebf94ad19f1a10d07dec6c22 [file] [log] [blame]
Steven Fackler07ea23e2014-02-14 06:57:431// 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
11pub fn main() {
Jorge Aparicio788181d2015-01-28 13:34:1812 #[derive(Debug)]
Steven Fackler07ea23e2014-02-14 06:57:4313 struct Foo {
Alex Crichton43bfaa42015-03-26 00:06:5214 foo: isize,
Steven Fackler07ea23e2014-02-14 06:57:4315 }
16
17 let f = Foo { foo: 10 };
Sean McArthur44440e52014-12-20 08:09:3518 format!("{:?}", f);
Steven Fackler07ea23e2014-02-14 06:57:4319}