2012-12-10 19:32:48 -06:00
|
|
|
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
|
|
|
|
// file at the top-level directory of this distribution and at
|
|
|
|
// http://rust-lang.org/COPYRIGHT.
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
|
|
|
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
|
|
|
// option. This file may not be copied, modified, or distributed
|
|
|
|
// except according to those terms.
|
|
|
|
|
2011-08-18 23:07:07 -05:00
|
|
|
// pp-exact
|
2014-12-19 20:20:51 -06:00
|
|
|
fn f() -> [int; 3] {
|
2011-08-18 23:07:07 -05:00
|
|
|
let picard = 0;
|
|
|
|
|
|
|
|
let data = 1;
|
|
|
|
|
|
|
|
let worf = 2;
|
|
|
|
|
|
|
|
|
2012-10-10 22:43:02 -05:00
|
|
|
let enterprise = [picard, data, worf];
|
2011-08-18 23:07:07 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
2012-08-01 19:30:05 -05:00
|
|
|
return enterprise;
|
2011-08-18 23:07:07 -05:00
|
|
|
}
|