]>
git.proxmox.com Git - rustc.git/blob - tests/ui/rfc-2632-const-trait-impl/specialization/issue-95187-same-trait-bound-different-constness.rs
1 // Tests that `T: ~const Foo` in a specializing impl is treated as equivalent to
2 // `T: Foo` in the default impl for the purposes of specialization (i.e., it
3 // does not think that the user is attempting to specialize on trait `Foo`).
7 #![feature(rustc_attrs)]
8 #![feature(min_specialization)]
9 #![feature(const_trait_impl)]
11 #[rustc_specialization_trait]
25 impl<T
> const Bar
for T
34 impl<T
> const Baz
for T
39 impl<T
> const Baz
for T