mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-15 20:45:45 +03:00
Update a compile-fail test
This commit is contained in:
@@ -10,6 +10,8 @@
|
||||
|
||||
// ignore-tidy-linelength
|
||||
|
||||
//~^^^^^^^^^^^^ ERROR
|
||||
|
||||
#![feature(optin_builtin_traits)]
|
||||
|
||||
unsafe auto trait Trait {
|
||||
@@ -22,5 +24,4 @@ fn call_method<T: Trait>(x: T) {}
|
||||
fn main() {
|
||||
// ICE
|
||||
call_method(());
|
||||
//~^ ERROR
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user