2015-03-10 10:28:44 +00:00
|
|
|
// Copyright 2015 The Rust Project Developers. See the COPYRIGHT
|
2013-08-09 08:25:24 +00:00
|
|
|
// 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.
|
|
|
|
|
2015-03-10 10:28:44 +00:00
|
|
|
trait Foo {
|
2015-03-16 01:35:25 +00:00
|
|
|
pub fn foo();
|
2017-04-13 19:37:05 +00:00
|
|
|
//~^ ERROR expected one of `const`, `extern`, `fn`, `type`, `unsafe`, or `}`, found `pub`
|
2013-08-09 08:25:24 +00:00
|
|
|
}
|
2014-05-22 17:49:26 +00:00
|
|
|
|
|
|
|
fn main() {}
|