2015-06-24 19:29:53 -05:00
|
|
|
const X: u8 = 1;
|
|
|
|
static Y: u8 = 1;
|
|
|
|
fn foo() {}
|
|
|
|
|
|
|
|
impl X {}
|
2016-11-30 16:35:25 -06:00
|
|
|
//~^ ERROR expected type, found constant `X`
|
2015-06-24 19:29:53 -05:00
|
|
|
impl Y {}
|
2016-11-30 16:35:25 -06:00
|
|
|
//~^ ERROR expected type, found static `Y`
|
2015-06-24 19:29:53 -05:00
|
|
|
impl foo {}
|
2016-11-30 16:35:25 -06:00
|
|
|
//~^ ERROR expected type, found function `foo`
|
2015-06-24 19:29:53 -05:00
|
|
|
|
|
|
|
fn main() {}
|