Files
rust/tests/ui/rfcs/rfc-2632-const-trait-impl/call-generic-method-fail.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
268 B
Rust
Raw Normal View History

2024-06-21 11:57:24 +00:00
//@ check-pass
2024-06-21 12:22:29 +00:00
#![feature(const_trait_impl, effects)] //~ WARN the feature `effects` is incomplete
2021-08-25 14:30:09 +00:00
pub const fn equals_self<T: PartialEq>(t: &T) -> bool {
*t == *t
2024-06-21 11:57:24 +00:00
// FIXME(effects) ~^ ERROR mismatched types
2023-12-06 02:42:59 +00:00
// FIXME(effects): diagnostic
}
fn main() {}