mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-01 17:40:16 +00:00
18 lines
467 B
Rust
18 lines
467 B
Rust
//! Regression test for <https://github.com/rust-lang/rust/issues/41652>.
|
|
//! This used to ICE on empty string indexing internally, which came from
|
|
//! empty code span in error message, when method cannot be found.
|
|
//@ aux-build:no-method-empty-span.rs
|
|
|
|
extern crate no_method_empty_span;
|
|
|
|
struct S;
|
|
|
|
impl no_method_empty_span::Tr for S {
|
|
fn f() {
|
|
3.f()
|
|
//~^ ERROR can't call method `f` on ambiguous numeric type `{integer}`
|
|
}
|
|
}
|
|
|
|
fn main() {}
|