// Copyright 2015 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 or the MIT license // , at your // option. This file may not be copied, modified, or distributed // except according to those terms. #![feature(associated_consts)] pub trait Foo { // @has assoc_consts/trait.Foo.html '//*[@class="rust trait"]' \ // 'const FOO: usize;' // @has - '//*[@id="associatedconstant.FOO"]' 'const FOO' const FOO: usize; } pub struct Bar; impl Bar { // @has assoc_consts/struct.Bar.html '//*[@id="assoc_const.BAR"]' \ // 'const BAR: usize = 3' pub const BAR: usize = 3; }