Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
never_type
/
never-associated-type.rs
blob: 45e54b9bf7c18398c150c826caf8957705f75e3a [
file
] [
log
] [
blame
]
// Test that we can use ! as an associated type.
// check-pass
trait
Foo
{
type
Wow
;
fn
smeg
(&
self
)
->
Self
::
Wow
;
}
struct
Blah
;
impl
Foo
for
Blah
{
type
Wow
=
!;
fn
smeg
(&
self
)
->
!
{
panic
!(
"kapow!"
);
}
}
fn
main
()
{
Blah
.
smeg
();
}