953f294ea3
This commit removes a number of deprecated flags from the compiler: * opt-level => -C opt-level * debuginfo => -C debuginfo * print-crate-name => --print crate-name * print-file-name => --print file-names * no-trans => -Z no-trans * no-analysis => -Z no-analysis * parse-only => -Z parse-only * dep-info => --emit dep-info This commit also moves the --pretty flag behind `-Z unstable-options` as the pretty printer will likely not be stable for 1.0 cc #19051
27 lines
715 B
Rust
27 lines
715 B
Rust
// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
|
|
// file at the top-level directory of this distribution and at
|
|
// http://rust-lang.org/COPYRIGHT.
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
|
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
|
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
|
// option. This file may not be copied, modified, or distributed
|
|
// except according to those terms.
|
|
|
|
// compile-flags:-C debuginfo=1
|
|
// min-lldb-version: 310
|
|
|
|
pub trait TraitWithDefaultMethod : Sized {
|
|
fn method(self) {
|
|
()
|
|
}
|
|
}
|
|
|
|
struct MyStruct;
|
|
|
|
impl TraitWithDefaultMethod for MyStruct { }
|
|
|
|
pub fn main() {
|
|
MyStruct.method();
|
|
}
|