Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
auto-traits
/
issue-23080.rs
blob: 84e2ce66f9dbd743c9a9c1a4fe4579cd71800689 [
file
] [
log
] [
blame
] [
edit
]
#![
feature
(
auto_traits
)]
#![
feature
(
negative_impls
)]
unsafe
auto
trait
Trait
{
fn
method
(&
self
)
{
//~ ERROR E0380
println
!(
"Hello"
);
}
}
fn
call_method
<
T
:
Trait
>(
x
:
T
)
{
x
.
method
();
}
fn
main
()
{
// ICE
call_method
(());
}