mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-02 07:22:42 +00:00
11 lines
707 B
Rust
11 lines
707 B
Rust
fn f1() -> impl Sized { & 2E } //~ ERROR expected at least one digit in exponent
|
|
fn f2() -> impl Sized { && 2E } //~ ERROR expected at least one digit in exponent
|
|
fn f3() -> impl Sized { &'a 2E } //~ ERROR expected at least one digit in exponent
|
|
//~^ ERROR borrow expressions cannot be annotated with lifetimes
|
|
fn f4() -> impl Sized { &'static 2E } //~ ERROR expected at least one digit in exponent
|
|
//~^ ERROR borrow expressions cannot be annotated with lifetimes
|
|
fn f5() -> impl Sized { *& 2E } //~ ERROR expected at least one digit in exponent
|
|
fn f6() -> impl Sized { &'_ 2E } //~ ERROR expected at least one digit in exponent
|
|
//~^ ERROR borrow expressions cannot be annotated with lifetimes
|
|
fn main() {}
|