]>
git.proxmox.com Git - rustc.git/blob - src/test/compile-fail/E0050.rs
1 // Copyright 2016 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.
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.
12 fn foo(&self, x
: u8) -> bool
; //~ NOTE trait requires 2 parameters
13 fn bar(&self, x
: u8, y
: u8, z
: u8); //~ NOTE trait requires 4 parameters
14 fn less(&self); //~ NOTE trait requires 1 parameter
20 fn foo(&self) -> bool { true }
//~ ERROR E0050
21 //~| NOTE expected 2 parameters, found 1
22 fn bar(&self) { }
//~ ERROR E0050
23 //~| NOTE expected 4 parameters, found 1
24 fn less(&self, x
: u8, y
: u8, z
: u8) { }
//~ ERROR E0050
25 //~| NOTE expected 1 parameter, found 4