]> git.proxmox.com Git - rustc.git/blob - src/test/ui/resolve/issue-16058.rs
New upstream version 1.19.0+dfsg1
[rustc.git] / src / test / ui / resolve / issue-16058.rs
1 // Copyright 2012-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
12 pub struct GslResult {
13 pub val: f64,
14 pub err: f64
15 }
16
17 impl GslResult {
18 pub fn new() -> GslResult {
19 Result {
20 //~^ ERROR expected struct, variant or union type, found enum `Result`
21 //~| HELP possible better candidates are found in other modules, you can import them into scope
22 //~| HELP std::fmt::Result
23 //~| HELP std::io::Result
24 //~| HELP std::thread::Result
25 val: 0f64,
26 err: 0f64
27 }
28 }
29 }
30
31 fn main() {}