fn test_single2() {
use foo2::Bar;
- let _x : Box<Bar>; //~ ERROR wrong number of const arguments: expected 0, found 1
- //~^ ERROR wrong number of type arguments: expected at least 1, found 0
+ let _x : Box<Bar>; //~ ERROR constant provided when a type was expected
let _x : Bar(); //~ ERROR expected type, found function `Bar`
}
fn test_list2() {
use foo2::{Bar,Baz};
- let _x: Box<Bar>; //~ ERROR wrong number of const arguments: expected 0, found 1
- //~^ ERROR wrong number of type arguments: expected at least 1, found 0
+ let _x: Box<Bar>; //~ ERROR constant provided when a type was expected
}
// neither public