Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui
/
auto-traits
/
issue-23080.rs
blob: 035db82ba5de0df26ec58513fda41d04993525f8 [
file
] [
log
] [
blame
]
#![
feature
(
optin_builtin_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
(());
}