Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
337987bf634179241c15780a2886febed9059366
/
.
/
tests
/
ui
/
diagnostic_namespace
/
do_not_recommend
/
feature-gate-do_not_recommend.rs
blob: 5a26d28188c257a25591965f9b33a4c5d6430207 [
file
] [
log
] [
blame
]
#![
feature
(
do_not_recommend
)]
pub
trait
Foo
{}
impl
Foo
for
i32
{}
pub
trait
Bar
{}
#[
diagnostic
::
do_not_recommend
]
impl
<
T
:
Foo
>
Bar
for
T
{}
fn
stuff
<
T
:
Bar
>(
_
:
T
)
{}
fn
main
()
{
stuff
(
1u8
);
//~^ the trait bound `u8: Bar` is not satisfied
}