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.
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 shave(other: usize);
26 // If this provides a suggestion, it's a bug as MaybeDog doesn't impl Groom
28 //~^ ERROR cannot find function `shave`
33 fn clone(&self) -> Self {
35 //~^ ERROR cannot find function `clone`
39 impl Default for cat {
40 fn default() -> Self {
42 //~^ ERROR cannot find function `default`
48 fn shave(other: usize) {
50 //~^ ERROR cannot find value `whiskers`
52 //~^ ERROR cannot find function `shave`
54 //~^ ERROR cannot find function `purr`
63 //~^ ERROR cannot find function `static_method`
65 //~^ ERROR cannot find function `purr`
67 //~^ ERROR cannot find function `purr`
69 //~^ ERROR cannot find function `purr`
75 if self.whiskers > 3 {
76 //~^ ERROR expected value, found module `self`
83 //~^ ERROR cannot find function `grow_older`
85 //~^ ERROR cannot find function `shave`
88 fn burn_whiskers(&mut self) {
90 //~^ ERROR cannot find value `whiskers`
93 pub fn grow_older(other:usize) {
95 //~^ ERROR cannot find value `whiskers`
97 //~^ ERROR cannot find function `purr_louder`
103 //~^ ERROR expected value, found module `self`