Sign in
rust
/
rust
/
e8a00a7621606f8c4a34b679cefaaa6aecf2442e
/
.
/
tests
/
ui
/
traits
/
const-traits
/
const-impl-inherent-double-const.rs
blob: b82c80576de00e28b56ac2de65fd9c8ee54f7b93 [
file
] [
log
] [
blame
]
//@run-rustfix
#![
feature
(
const_trait_impl
)]
struct
Foo
;
const
impl
Foo
{
fn
bar
()
{}
const
fn
baz
()
{}
//~^ ERROR: redundant `const`
}
const
_
:
()
=
{
Foo
::
bar
();
Foo
::
baz
();
};
fn
main
()
{
}