Sign in
rust
/
rust-lang
/
rust
/
refs/heads/beta
/
.
/
tests
/
ui
/
error-codes
/
E0010-teach.rs
blob: 0eef24783873c676a06bf963e04da6e864d52fcb [
file
] [
log
] [
blame
]
//@ compile-flags: -Z teach
#![
allow
(
warnings
)]
const
CON
:
Vec
<
i32
>
=
vec
![
1
,
2
,
3
];
//~ ERROR E0010
//~| ERROR cannot call non-const method
fn
main
()
{}