1
Fork 0

add the lint back to the list, and fix tests

This commit is contained in:
Ralf Jung 2018-09-19 17:22:03 +02:00 committed by Oliver Scherer
parent 94586bc133
commit 7ed7fc881e
24 changed files with 74 additions and 296 deletions

View file

@ -60,15 +60,15 @@ const VALS_U64: (u64,) = //~ ERROR any use of this value will cause an error
);
fn main() {
foo(VALS_I8); //~ ERROR erroneous constant used
foo(VALS_I16); //~ ERROR erroneous constant used
foo(VALS_I32); //~ ERROR erroneous constant used
foo(VALS_I64); //~ ERROR erroneous constant used
foo(VALS_I8);
foo(VALS_I16);
foo(VALS_I32);
foo(VALS_I64);
foo(VALS_U8); //~ ERROR erroneous constant used
foo(VALS_U16); //~ ERROR erroneous constant used
foo(VALS_U32); //~ ERROR erroneous constant used
foo(VALS_U64); //~ ERROR erroneous constant used
foo(VALS_U8);
foo(VALS_U16);
foo(VALS_U32);
foo(VALS_U64);
}
fn foo<T>(_: T) {