about summary refs log tree commit diff
path: root/tests/ui/auto-traits/issue-23080-2.rs
blob: f1e7599959da1011954e21521cb5180b916a67e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//@ revisions: current next
//@ ignore-compare-mode-next-solver (explicit revisions)
//@[next] compile-flags: -Znext-solver

#![feature(auto_traits)]
#![feature(negative_impls)]

unsafe auto trait Trait {
    type Output; //~ ERROR E0380
}

fn call_method<T: Trait>(x: T) {}

fn main() {
    // ICE
    call_method(());
}