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